[][src]Enum twitchchat::RunnerError

pub enum RunnerError {
    Io(Error),
    InvalidUtf8(Utf8Error),
    ParsingFailure(MessageError),
    InvalidCap {
        cap: String,
    },
    AlreadyOnChannel {
        channel: String,
    },
    NotOnChannel {
        channel: String,
    },
    BannedFromChannel {
        channel: String,
    },
    TimedOut,
    ShouldReconnect,
    UnexpectedEof,
}

An error returned by a Runner

Variants

Io(Error)

An I/O error occured

InvalidUtf8(Utf8Error)

Invalid utf-8 was parsed (either you sent invalid utf-8, or twitch did and we read it).

ParsingFailure(MessageError)

We could not parse a message -- this should never happen

InvalidCap

You requested a capability and Twitch rejected it

Fields of InvalidCap

cap: String

The capability name

AlreadyOnChannel

You're already on that channel

Fields of AlreadyOnChannel

channel: String

The channel name

NotOnChannel

You weren't on that channel

Fields of NotOnChannel

channel: String

The channel name

BannedFromChannel

You could not join this channel, you were banned prior.

Fields of BannedFromChannel

channel: String

The channel name

TimedOut

Your connection timed out.

ShouldReconnect

Twitch restarted the server, you should reconnect.

UnexpectedEof

An unexpected EOF was found -- this means the connectionc losed abnormally.

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

impl From<DecodeError> for Error[src]

impl From<Error> for Error[src]

impl From<MessageError> for Error[src]

Auto Trait Implementations

impl !RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl !UnwindSafe for Error

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.