Enum hiirc::Event []

pub enum Event {
    Closed(&'static str),
    Disconnected,
    Message(Message),
    ParseError(ParseError),
    Reconnected,
    Reconnecting,
    ReconnectionError(Error),
}

This is the comprehensive set of events that can occur.

Variants

Closed(&'static str)

Connection was manually closed. The string is the reason.

Disconnected

Connection has dropped.

Message(Message)

Message from the IRC server.

ParseError(ParseError)

Error parsing a message from the server.

This can probably be ignored, and it shouldn't ever happen, really. If you catch this you should probably open an issue on GitHub.

Reconnected

Connection was sucessfully restored.

Reconnecting

Attempting to restore connection.

ReconnectionError(Error)

An error occured trying to restore the connection.

This is normal in poor network conditions. It might take a few attempts before the connection can be restored.

Trait Implementations

impl Debug for Event

fn fmt(&self, __arg_0: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.