aboutsummaryrefslogtreecommitdiff
path: root/src/events.rs
diff options
context:
space:
mode:
authorTill Hoeppner2014-11-03 16:39:57 +0100
committerTill Hoeppner2014-11-03 16:39:57 +0100
commit55b915a75f49957eaddefa74cbbf572ad186ee2f (patch)
treee18b0bb361802261db96f719eae7f0c9d3f3dbf3 /src/events.rs
parentfc27f8cee888acf70683badca9edadb45544822c (diff)
downloadirsc-55b915a75f49957eaddefa74cbbf572ad186ee2f.tar.gz
irsc-55b915a75f49957eaddefa74cbbf572ad186ee2f.tar.xz
irsc-55b915a75f49957eaddefa74cbbf572ad186ee2f.zip
API improvements, but more copying
Diffstat (limited to 'src/events.rs')
-rw-r--r--src/events.rs22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/events.rs b/src/events.rs
deleted file mode 100644
index 8c474d7..0000000
--- a/src/events.rs
+++ /dev/null
@@ -1,22 +0,0 @@
-use ident::Ident;
-
-macro_rules! string_record(
- ($name: ident, $( $fields: ident ),*) => (
- #[deriving(Show, Clone)]
- pub struct $name {
- $(pub $fields: String),*
- }
- )
-)
-
-string_record!(Welcome, source, target, msg)
-string_record!(YourHost, source, target, msg)
-string_record!(Created, source, target, msg)
-
-#[deriving(Show, Clone)]
-pub enum Event {
- RplWelcome(Box<Welcome>),
- RplYourHost(Box<YourHost>),
- RplCreated(Box<Created>),
- PrivMsg(Ident, String, String)
-}