pub enum Type<'a> {
Show 13 variants
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>,
},
}Expand description
All representable events, such as messages, quits, joins and topic changes.
Variants§
Implementations§
Trait Implementations§
impl<'a> Eq for Type<'a>
impl<'a> StructuralPartialEq for Type<'a>
Auto Trait Implementations§
impl<'a> Freeze for Type<'a>
impl<'a> RefUnwindSafe for Type<'a>
impl<'a> Send for Type<'a>
impl<'a> Sync for Type<'a>
impl<'a> Unpin for Type<'a>
impl<'a> UnwindSafe for Type<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)