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
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.
Trait Implementations
impl Debug for IrcError
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Fail for IrcError
[src]
fn cause(&self) -> Option<&Fail>
[src]
Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
Returns a reference to the Backtrace
carried by this failure, if it carries one. Read more
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
[src]
D: Display + Send + Sync + 'static,
Provides context for this failure. Read more
fn compat(self) -> Compat<Self>
[src]
Wraps this failure in a compatibility wrapper that implements std::error::Error
. Read more
ⓘImportant traits for Causes<'f>fn causes(&self) -> Causes
[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
fn root_cause(&self) -> &(Fail + 'static)
[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]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl From<IoError> for IrcError
[src]
impl From<TlsError> for IrcError
[src]
impl From<RecvError> for IrcError
[src]
impl From<SendError<Message>> for IrcError
[src]
impl From<Canceled> for IrcError
[src]
impl From<TimerError> for IrcError
[src]
fn from(e: TimerError) -> IrcError
[src]
Performs the conversion.