pub enum CliExit {
Success,
Code(i32),
}Expand description
Normalized exit status returned by execute_cli.
CLI callers still receive an anyhow::Result, but this enum represents the
exit code that should be returned to the OS if execute_cli succeeds. A
Success value maps to 0, whereas Code preserves a non-zero process
status (including signals on Unix).
Variants§
Success
The command completed successfully and should exit with code 0.
Code(i32)
The command completed and wants the process to exit with the provided code.
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
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.