Flesh out plugins event handling, add example stdin plugin (event producer) and echo plugin (event consumer). Next step: fleshing out user/channel structs

This commit is contained in:
Adrian Malacoda
2017-02-13 00:22:06 -06:00
parent a31b060dd3
commit 26a6b77632
12 changed files with 180 additions and 19 deletions

8
src/event/mod.rs Normal file
View File

@@ -0,0 +1,8 @@
use {Channel, User};
#[derive(Debug, Clone)]
pub enum Event<'a> {
Message { sender: &'a User, channel: Option<&'a Channel>, content: String },
Join { channel: &'a Channel },
Quit { channel: &'a Channel }
}