Enum ap::Error [−][src]
pub enum Error {
NoHandler,
NoArgs,
UnknownOpt,
MissingOptName,
MissingOptArg,
MissingReqOpt,
NoPosnArgs,
NoBundling,
NoLongOpts,
GenericError(String),
}The error type.
Variants
No handler means nothing will happen.
No registered arguments means nothing will happen.
User specified an unknown option.
User specified an invalid argument that looks like an option but doesn’t have a name.
Option argument was not specified.
An option that must be specified was not specified.
Positional arguments are not permitted by default.
To allow them, either register an Arg for POSITIONAL_HANDLER_OPT,
or set Settings.ignore_unknown_posn_args.
Options must be kept separate on the command line
(-d -a foo rather than -da foo).
Option names can only be a single character long
(-v rather than, say, --verbose).
GenericError(String)An unknown error (used for testing).
Trait Implementations
impl Clone for Error[src]
impl Debug for Error[src]
impl Display for Error[src]
impl Eq for Error[src]
impl Error for Error[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>[src]
pub fn description(&self) -> &str1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>1.0.0[src]
impl PartialEq<Error> for Error[src]
impl StructuralEq for Error[src]
impl StructuralPartialEq for Error[src]
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,