Enum argyle::ArgyleError [−][src]
pub enum ArgyleError {
Custom(&'static str),
Empty,
NoArg,
NoSubCmd,
Passthru(i32),
TooManyArgs,
TooManyKeys,
WantsDynamicHelp(Option<Box<[u8]>>),
WantsHelp,
WantsVersion,
}
Expand description
Variants
Custom(&'static str)
Tuple Fields
0: &'static str
A custom error.
Empty
Missing anything/everything.
NoArg
No trailing args.
NoSubCmd
Expected subcommand.
Passthru(i32)
Tuple Fields
0: i32
Miscellaneous Silent Failure.
This has no corresponding error text, but does have its own exit code.
TooManyArgs
Too many arguments.
TooManyKeys
Too many options defined.
WantsDynamicHelp(Option<Box<[u8]>>)
Wants subcommand help.
WantsHelp
Wants help.
WantsVersion
Wants version.
Implementations
Exit code.
This returns the exit code for the error. Non-error errors like help
and version have a non-error exit code of 0
. ArgyleError::Passthru
returns whatever code was defined, while everything else just returns
1
.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ArgyleError
impl Send for ArgyleError
impl Sync for ArgyleError
impl Unpin for ArgyleError
impl UnwindSafe for ArgyleError
Blanket Implementations
Mutably borrows from an owned value. Read more