pub enum CliExit {
Ok,
UserError,
Usage,
Custom(i32),
}Expand description
Git-compatible CLI exit status. See git help exit-code for the upstream taxonomy.
Variants§
Ok
Success (exit 0).
UserError
User-facing fatal error (exit 128).
Usage
Invalid usage / bad arguments (exit 129).
Custom(i32)
Command-specific exit code (e.g. grep returning 1 when no matches).
Implementations§
Trait Implementations§
impl Copy for CliExit
impl Eq for CliExit
impl StructuralPartialEq for CliExit
Auto Trait Implementations§
impl Freeze for CliExit
impl RefUnwindSafe for CliExit
impl Send for CliExit
impl Sync for CliExit
impl Unpin for CliExit
impl UnsafeUnpin for CliExit
impl UnwindSafe for CliExit
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