pub struct ProcessOutcome {
pub exit_code: Option<i32>,
}Expand description
Result of running a child process.
Fields§
§exit_code: Option<i32>Exit status reported by the OS. None if the process was terminated
by a signal (Unix).
Implementations§
Source§impl ProcessOutcome
impl ProcessOutcome
Sourcepub const fn is_success(&self) -> bool
pub const fn is_success(&self) -> bool
Returns true when the process exited normally with code 0.
Trait Implementations§
Source§impl Clone for ProcessOutcome
impl Clone for ProcessOutcome
Source§fn clone(&self) -> ProcessOutcome
fn clone(&self) -> ProcessOutcome
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 moreSource§impl Debug for ProcessOutcome
impl Debug for ProcessOutcome
Source§impl PartialEq for ProcessOutcome
impl PartialEq for ProcessOutcome
Source§fn eq(&self, other: &ProcessOutcome) -> bool
fn eq(&self, other: &ProcessOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ProcessOutcome
impl StructuralPartialEq for ProcessOutcome
Auto Trait Implementations§
impl Freeze for ProcessOutcome
impl RefUnwindSafe for ProcessOutcome
impl Send for ProcessOutcome
impl Sync for ProcessOutcome
impl Unpin for ProcessOutcome
impl UnsafeUnpin for ProcessOutcome
impl UnwindSafe for ProcessOutcome
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