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,
}

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.

Trait Implementations

impl Debug for IrcError
[src]

[src]

Formats the value using the given formatter. Read more

impl Fail for IrcError
[src]

[src]

Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more

[src]

Returns a reference to the Backtrace carried by this failure, if it carries one. Read more

[src]

Provides context for this failure. Read more

[src]

Wraps this failure in a compatibility wrapper that implements std::error::Error. Read more

Important traits for Causes<'f>
[src]

Returns a iterator over the causes of this Fail with itself as the first item and the root_cause as the final item. Read more

[src]

Returns the "root cause" of this Fail - the last value in the cause chain which does not return an underlying cause. Read more

impl Display for IrcError
[src]

[src]

Formats the value using the given formatter. Read more

impl From<IoError> for IrcError
[src]

[src]

Performs the conversion.

impl From<TlsError> for IrcError
[src]

[src]

Performs the conversion.

impl From<RecvError> for IrcError
[src]

[src]

Performs the conversion.

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

[src]

Performs the conversion.

impl From<Canceled> for IrcError
[src]

[src]

Performs the conversion.

impl From<TimerError> for IrcError
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for IrcError

impl Sync for IrcError