pub enum ErrorKind {
InvalidArgument(String),
InvalidArgumentCount,
InvalidExpression,
UnexpectedOption(String),
UnexpectedCommand(String),
MissingOption(String),
Other,
DisplayHelp(String),
DisplayVersion(String),
// some variants omitted
}Expand description
Types of errors.
Variants§
InvalidArgument(String)
The value passed to the argument is invalid.
InvalidArgumentCount
Invalid number of arguments being passed.
InvalidExpression
The expression is invalid.
UnexpectedOption(String)
The option wasn’t expected in the current context
UnexpectedCommand(String)
The command wasn’t expected in the current context
MissingOption(String)
The option is required.
Other
An error no listed.
DisplayHelp(String)
Not an actual error used for convenience.
Display a help message.
DisplayVersion(String)
Not an actual error used for convenience.
Display a version message.
Trait Implementations§
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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