Enum irc_bot::BotCmdResult[][src]

pub enum BotCmdResult {
    Ok(Reaction),
    Unauthorized,
    SyntaxErr,
    ArgMissing(Cow<'static, str>),
    ArgMissing1To1(Cow<'static, str>),
    LibErr(Error),
    UserErrMsg(Cow<'static, str>),
    BotErrMsg(Cow<'static, str>),
}

Variants

The command was processed successfully. Pass through a Reaction.

A user invoked the command without having sufficient authorization to do so. A reply will be sent informing the user of this.

A user invoked the command with incorrect syntax. A reply will be sent informing the user of the correct syntax.

A user invoked the command without providing a required argument, named by the given string. This is a more specific version of SyntaxErr and should be preferred where applicable.

A user invoked the command in one-to-one communication (a.k.a. "query" and "PM") without providing an argument that is required only in one-to-one communication (such as a channel name, which could normally default to the name of the channel in which the command was used), named by the given string. This is a more specific version of ArgMissing and should be preferred where applicable.

Pass through an instance of the framework's Error type.

A user made some miscellaneous error in invoking the command. The given string will be included in a reply informing the user of their error.

A miscellaneous error that doesn't seem to be the user's fault occurred while the bot was processing the command. The given string will be included in a reply informing the user of this.

Trait Implementations

impl Debug for BotCmdResult
[src]

Formats the value using the given formatter. Read more

impl From<Reaction> for BotCmdResult
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for BotCmdResult

impl !Sync for BotCmdResult