[][src]Enum twitch_irc::Error

pub enum Error<T: Transport, L: LoginCredentials> {
    ConnectError(T::ConnectError),
    IncomingError(T::IncomingError),
    OutgoingError(T::OutgoingError),
    IRCParseError(IRCParseError),
    LoginError(L::Error),
    ReconnectCmd,
    PingTimeout,
    ConnectionClosed,
}

Errors that can occur while trying to execute some action on a TwitchIRCClient.

Variants

ConnectError(T::ConnectError)

Underlying transport failed to connect

IncomingError(T::IncomingError)

Error received from incoming stream of messages

OutgoingError(T::OutgoingError)

Error received while trying to send message(s) out

IRCParseError(IRCParseError)

Incoming message was not valid IRC

LoginError(L::Error)

Failed to get login credentials to log in with

ReconnectCmd

Received RECONNECT command by IRC server

PingTimeout

Did not receive a PONG back after sending PING

ConnectionClosed

Remote server unexpectedly closed connection

Trait Implementations

impl<T: Debug + Transport, L: Debug + LoginCredentials> Debug for Error<T, L> where
    T::ConnectError: Debug,
    T::IncomingError: Debug,
    T::OutgoingError: Debug,
    L::Error: Debug
[src]

impl<T: Transport, L: LoginCredentials> Display for Error<T, L>[src]

impl<T: Transport, L: LoginCredentials> Error for Error<T, L>[src]

Auto Trait Implementations

impl<T, L> RefUnwindSafe for Error<T, L> where
    <T as Transport>::ConnectError: RefUnwindSafe,
    <L as LoginCredentials>::Error: RefUnwindSafe,
    <T as Transport>::IncomingError: RefUnwindSafe,
    <T as Transport>::OutgoingError: RefUnwindSafe

impl<T, L> Send for Error<T, L> where
    <T as Transport>::ConnectError: Send,
    <L as LoginCredentials>::Error: Send,
    <T as Transport>::IncomingError: Send,
    <T as Transport>::OutgoingError: Send

impl<T, L> Sync for Error<T, L> where
    <T as Transport>::ConnectError: Sync,
    <L as LoginCredentials>::Error: Sync,
    <T as Transport>::IncomingError: Sync,
    <T as Transport>::OutgoingError: Sync

impl<T, L> Unpin for Error<T, L> where
    <T as Transport>::ConnectError: Unpin,
    <L as LoginCredentials>::Error: Unpin,
    <T as Transport>::IncomingError: Unpin,
    <T as Transport>::OutgoingError: Unpin

impl<T, L> UnwindSafe for Error<T, L> where
    <T as Transport>::ConnectError: UnwindSafe,
    <L as LoginCredentials>::Error: UnwindSafe,
    <T as Transport>::IncomingError: UnwindSafe,
    <T as Transport>::OutgoingError: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.