Enum ilc::event::Type [] [src]

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

Fields of Msg

Fields of Action

Fields of Join

Fields of Part

Fields of Quit

Fields of Nick

Fields of Notice

Fields of Kick

Fields of Topic

Fields of TopicChange

Fields of Mode

Methods

impl<'a> Type<'a>
[src]

Trait Implementations

impl<'a> Clone for Type<'a>
[src]

impl<'a> Eq for Type<'a>
[src]

impl<'a> Hash for Type<'a>
[src]

impl<'a> PartialEq<Type<'a>> for Type<'a>
[src]

impl<'a> Decodable for Type<'a>
[src]

impl<'a> Encodable for Type<'a>
[src]

impl<'a> Debug for Type<'a>
[src]