Enum shrust::ExecError [] [src]

pub enum ExecError {
    Empty,
    Quit,
    MissingArgs,
    UnknownCommand(String),
    InvalidHistory(usize),
    Other(Box<Error>),
}

Command execution error

Variants

Empty

Empty command provided

Quit

Exit from the shell loop

MissingArgs

Some arguments are missing

UnknownCommand(String)

The provided command is unknown

InvalidHistory(usize)

The history index is not valid

Other(Box<Error>)

Other error that may have happen during command execution

Trait Implementations

impl Debug for ExecError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for ExecError
[src]

fn fmt(&self, format: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<E: Error + 'static> From<E> for ExecError
[src]

fn from(e: E) -> ExecError

Performs the conversion.