[][src]Enum irc_async::proto::MessageParseError

pub enum MessageParseError {
    EmptyMessage,
    InvalidCommand,
    InvalidModeString {
        string: String,
        cause: ModeParseError,
    },
    InvalidSubcommand {
        cmd: &'static str,
        sub: String,
    },
}

Errors that occur when parsing messages.

Variants

EmptyMessage

The message was empty.

InvalidCommand

The command was invalid (i.e. missing).

InvalidModeString

The mode string was malformed.

Fields of InvalidModeString

string: String

The invalid mode string.

cause: ModeParseError

The detailed mode parsing error.

InvalidSubcommand

The subcommand used was invalid.

Fields of InvalidSubcommand

cmd: &'static str

The command whose invalid subcommand was referenced.

sub: String

The invalid subcommand.

Trait Implementations

impl Debug for MessageParseError[src]

impl Display for MessageParseError[src]

impl Error for MessageParseError[src]

Auto Trait Implementations

Blanket Implementations

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 = !

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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