Enum irc::error::IrcError[][src]

pub enum IrcError {
    Io(IoError),
    Tls(TlsError),
    SyncChannelClosed(RecvError),
    AsyncChannelClosed(SendError<Message>),
    OneShotCanceled(Canceled),
    Timer(TimerError),
    InvalidConfig {
        path: String,
        cause: ConfigError,
    },
    InvalidMessage {
        string: String,
        cause: MessageParseError,
    },
    PoisonedLog,
    PingTimeout,
    UnknownCodec {
        codec: String,
    },
    CodecFailed {
        codec: &'static str,
        data: String,
    },
    NoUsableNick,
    Custom {
        inner: Error,
    },
}

The main crate-wide error type.

Variants

An internal I/O error.

An internal TLS error.

An internal synchronous channel closed.

An internal asynchronous channel closed.

An internal oneshot channel closed.

An internal timer error.

Error for invalid configurations.

Fields of InvalidConfig

The path to the configuration, or "" if none specified.

The detailed configuration error.

Error for invalid messages.

Fields of InvalidMessage

The string that failed to parse.

The detailed message parsing error.

Mutex for a logged transport was poisoned making the log inaccessible.

Ping timed out due to no response.

Failed to lookup an unknown codec.

Fields of UnknownCodec

The attempted codec.

Failed to encode or decode something with the given codec.

Fields of CodecFailed

The canonical codec name.

The data that failed to encode or decode.

All specified nicknames were in use or unusable.

This allows you to produce any failure::Error within closures used by the irc crate. No errors of this kind will ever be produced by the crate itself.

Fields of Custom

The actual error that occurred.

Trait Implementations

impl Debug for IrcError
[src]

Formats the value using the given formatter. Read more

impl From<IoError> for IrcError
[src]

Performs the conversion.

impl From<TlsError> for IrcError
[src]

Performs the conversion.

impl From<RecvError> for IrcError
[src]

Performs the conversion.

impl From<SendError<Message>> for IrcError
[src]

Performs the conversion.

impl From<Canceled> for IrcError
[src]

Performs the conversion.

impl From<TimerError> for IrcError
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for IrcError

impl Sync for IrcError