pub enum Type<'a> {
Connect,
Disconnect,
Msg {
from: Cow<'a, str>,
content: Cow<'a, str>,
},
Action {
from: Cow<'a, str>,
content: Cow<'a, str>,
},
Join {
nick: Cow<'a, str>,
mask: Option<Cow<'a, str>>,
},
Part {
nick: Cow<'a, str>,
mask: Option<Cow<'a, str>>,
reason: Option<Cow<'a, str>>,
},
Quit {
nick: Cow<'a, str>,
mask: Option<Cow<'a, str>>,
reason: Option<Cow<'a, str>>,
},
Nick {
old_nick: Cow<'a, str>,
new_nick: Cow<'a, str>,
},
Notice {
from: Cow<'a, str>,
content: Cow<'a, str>,
},
Kick {
kicked_nick: Cow<'a, str>,
kicking_nick: Option<Cow<'a, str>>,
kick_message: Option<Cow<'a, str>>,
},
Topic {
topic: Cow<'a, str>,
},
TopicChange {
nick: Option<Cow<'a, str>>,
new_topic: Cow<'a, str>,
},
Mode {
nick: Option<Cow<'a, str>>,
mode: Cow<'a, str>,
masks: Cow<'a, str>,
},
}
All representable events, such as messages, quits, joins
and topic changes.
Variants
Connect
Disconnect
Msg
Fields of Msg
Action
Fields of Action
Join
Fields of Join
Part
Fields of Part
Quit
Fields of Quit
Nick
Fields of Nick
Notice
Fields of Notice
Kick
Fields of Kick
Topic
Fields of Topic
TopicChange
Fields of TopicChange
Mode
Fields of Mode
Methods
Trait Implementations
fn hash<__H>(&self, __arg_0: &mut __H) where
__H: Hasher,