pub enum CliErrorKind {
MissingArgument(String),
MissingParameter(String, usize),
ParseCommandLine,
Inner,
}
Expand description
The different kinds of errors that can occur during command line parsing.
Variants§
MissingArgument(String)
A required argument was not provided
MissingParameter(String, usize)
A required parameter at a specific position was not provided
ParseCommandLine
General command line parsing error
Inner
An internal error occurred (e.g., during type conversion)
Implementations§
Source§impl CliErrorKind
impl CliErrorKind
pub fn into_boxed_error(self) -> Box<dyn Error>
Trait Implementations§
Source§impl Clone for CliErrorKind
impl Clone for CliErrorKind
Source§fn clone(&self) -> CliErrorKind
fn clone(&self) -> CliErrorKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CliErrorKind
impl Debug for CliErrorKind
Source§impl Display for CliErrorKind
impl Display for CliErrorKind
Source§impl From<CliErrorKind> for CliError
impl From<CliErrorKind> for CliError
Source§fn from(kind: CliErrorKind) -> Self
fn from(kind: CliErrorKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CliErrorKind
impl RefUnwindSafe for CliErrorKind
impl Send for CliErrorKind
impl Sync for CliErrorKind
impl Unpin for CliErrorKind
impl UnwindSafe for CliErrorKind
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