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
Io(IoError)
An internal I/O error.
Tls(TlsError)
An internal TLS error.
SyncChannelClosed(RecvError)
An internal synchronous channel closed.
AsyncChannelClosed(SendError<Message>)
An internal asynchronous channel closed.
OneShotCanceled(Canceled)
An internal oneshot channel closed.
Timer(TimerError)
An internal timer error.
InvalidConfig
Error for invalid configurations.
Fields of InvalidConfig
path: String | The path to the configuration, or " |
cause: ConfigError | The detailed configuration error. |
InvalidMessage
Error for invalid messages.
Fields of InvalidMessage
string: String | The string that failed to parse. |
cause: MessageParseError | The detailed message parsing error. |
PoisonedLog
Mutex for a logged transport was poisoned making the log inaccessible.
PingTimeout
Ping timed out due to no response.
UnknownCodec
Failed to lookup an unknown codec.
Fields of UnknownCodec
codec: String | The attempted codec. |
CodecFailed
Failed to encode or decode something with the given codec.
Fields of CodecFailed
codec: &'static str | The canonical codec name. |
data: String | The data that failed to encode or decode. |
NoUsableNick
All specified nicknames were in use or unusable.
Custom
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
inner: Error | The actual error that occurred. |
Trait Implementations
impl Debug for IrcError
[src]
impl Debug for IrcError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<IoError> for IrcError
[src]
impl From<IoError> for IrcError
impl From<TlsError> for IrcError
[src]
impl From<TlsError> for IrcError
impl From<RecvError> for IrcError
[src]
impl From<RecvError> for IrcError
impl From<SendError<Message>> for IrcError
[src]
impl From<SendError<Message>> for IrcError
impl From<Canceled> for IrcError
[src]
impl From<Canceled> for IrcError
impl From<TimerError> for IrcError
[src]
impl From<TimerError> for IrcError
fn from(e: TimerError) -> IrcError
[src]
fn from(e: TimerError) -> IrcError
Performs the conversion.