pub enum Outcome {
Success,
Error,
}Available on crate feature
view only.Expand description
Whether a Present result succeeded. It picks the stream pretty output
goes to and the default exit code.
The set is closed, and the enum is not #[non_exhaustive]: a command
either succeeded or failed.
Variants§
Success
The command succeeded. Pretty output goes to stdout, and the exit code
is 0.
Error
The command failed. Pretty output goes to stderr, and the exit code is
1.
Implementations§
Source§impl Outcome
impl Outcome
Sourcepub const fn default_exit_code(self) -> u8
pub const fn default_exit_code(self) -> u8
The exit code for a result of this variant, unless the result
overrides Present::exit_code: 0 for a success, 1 for an error.
Trait Implementations§
impl Copy for Outcome
impl Eq for Outcome
impl StructuralPartialEq for Outcome
Auto Trait Implementations§
impl Forget for Outcome
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
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