pub enum UtilsArgParserError {
ForbiddenArgument(String, String),
MissingArgument(String),
MissingValue(String),
UnexpectedArgument(String),
DuplicateArgument(String),
}Expand description
Errors associated with parsing and validating arguments.
Variants§
ForbiddenArgument(String, String)
Argument ‘{1}’ cannot be used together with argument ‘{0}’.
MissingArgument(String)
Argument ‘{0}’ required, but not found.
MissingValue(String)
The argument ‘{0}’ requires a value, but none was supplied.
UnexpectedArgument(String)
Found argument ‘{0}’ which wasn’t expected, or isn’t valid in this context.
DuplicateArgument(String)
The argument ‘{0}’ was provided more than once.
Trait Implementations§
Source§impl Debug for UtilsArgParserError
impl Debug for UtilsArgParserError
Source§impl Display for UtilsArgParserError
impl Display for UtilsArgParserError
Source§impl Error for UtilsArgParserError
impl Error for UtilsArgParserError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for UtilsArgParserError
impl PartialEq for UtilsArgParserError
impl Eq for UtilsArgParserError
impl StructuralPartialEq for UtilsArgParserError
Auto Trait Implementations§
impl Freeze for UtilsArgParserError
impl RefUnwindSafe for UtilsArgParserError
impl Send for UtilsArgParserError
impl Sync for UtilsArgParserError
impl Unpin for UtilsArgParserError
impl UnwindSafe for UtilsArgParserError
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