#[non_exhaustive]pub enum RunErrorKind {
ClapUsage,
DefaultCommand,
Handler,
Hook(HookPhase),
Render,
FinalWrite(OutputKind),
External,
}Expand description
Typed origin for an unsuccessful framework run.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ClapUsage
Clap rejected the command line.
DefaultCommand
A default-command resolver named a command the CLI does not have.
Handler
The application handler returned an error.
Hook(HookPhase)
A hook failed in the identified phase. Pipe failures are post-output hooks.
Render
Handler data serialization or presentation rendering failed.
FinalWrite(OutputKind)
A framework-owned file/stdout write failed.
External
The application declared a failure from an authoritative external operation.
Trait Implementations§
Source§impl Clone for RunErrorKind
impl Clone for RunErrorKind
Source§fn clone(&self) -> RunErrorKind
fn clone(&self) -> RunErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RunErrorKind
Source§impl Debug for RunErrorKind
impl Debug for RunErrorKind
impl Eq for RunErrorKind
Source§impl Hash for RunErrorKind
impl Hash for RunErrorKind
Source§impl PartialEq for RunErrorKind
impl PartialEq for RunErrorKind
impl StructuralPartialEq for RunErrorKind
Auto Trait Implementations§
impl Freeze for RunErrorKind
impl RefUnwindSafe for RunErrorKind
impl Send for RunErrorKind
impl Sync for RunErrorKind
impl Unpin for RunErrorKind
impl UnsafeUnpin for RunErrorKind
impl UnwindSafe for RunErrorKind
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