pub enum ExecError {
Empty,
Quit,
MissingArgs,
UnknownCommand(String),
InvalidHistory(usize),
Other(Box<dyn Error>),
}
Expand description
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<dyn Error>)
Other error that may have happen during command execution
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExecError
impl !RefUnwindSafe for ExecError
impl !Send for ExecError
impl !Sync for ExecError
impl Unpin for ExecError
impl !UnwindSafe for ExecError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more