#[repr(u8)]pub enum ExitCode {
Ok = 0,
Failure = 1,
MissingDependency = 2,
UserCancelled = 3,
ConfirmationMismatch = 4,
InvalidArgument = 5,
}Expand description
Exit code surface for the CLI. Kept small and stable so scripts can branch on it without parsing stderr.
Variants§
Ok = 0
Command succeeded.
Failure = 1
Generic failure (I/O, unexpected stderr).
MissingDependency = 2
Missing or unsatisfiable dependency (ntfs-3g, macFUSE/FUSE-T).
UserCancelled = 3
User declined an interactive prompt (Ctrl-C, “no” to confirm).
ConfirmationMismatch = 4
Confirmation phrase did not match.
InvalidArgument = 5
Input/argument validation error (unknown device, invalid label).
Trait Implementations§
impl Copy for ExitCode
impl Eq for ExitCode
impl StructuralPartialEq for ExitCode
Auto Trait Implementations§
impl Freeze for ExitCode
impl RefUnwindSafe for ExitCode
impl Send for ExitCode
impl Sync for ExitCode
impl Unpin for ExitCode
impl UnsafeUnpin for ExitCode
impl UnwindSafe for ExitCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.