[][src]Enum twitch_irc::Error

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

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

Variants

ConnectError(Arc<T::ConnectError>)

Underlying transport failed to connect

ConnectTimeout

Underlying transport failed to connect in time

IncomingError(Arc<T::IncomingError>)

Error received from incoming stream of messages

OutgoingError(Arc<T::OutgoingError>)

Error received while trying to send message(s) out

IRCParseError(IRCParseError)

Incoming message was not valid IRC

LoginError(Arc<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

RemoteUnexpectedlyClosedConnection

Remote server unexpectedly closed connection

Trait Implementations

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

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
[src]

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

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

impl<T, L> Unpin for Error<T, L>[src]

impl<T, L> UnwindSafe 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
[src]

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> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,