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

The provided command is unknown

InvalidHistory

The history index is not valid

Other

Other error that may have happen during command execution

Trait Implementations

impl Display for ExecError

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

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

fn from(e: E) -> ExecError

Derived Implementations

impl Debug for ExecError

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