pub struct ProcessOutcome { /* private fields */ }Expand description
Plain process outcome metadata.
Implementations§
Source§impl ProcessOutcome
impl ProcessOutcome
Sourcepub const fn new(process_id: Option<ProcessId>, status: ProcessStatus) -> Self
pub const fn new(process_id: Option<ProcessId>, status: ProcessStatus) -> Self
Creates an outcome from optional process identity and status metadata.
Sourcepub const fn for_process(process_id: ProcessId, status: ProcessStatus) -> Self
pub const fn for_process(process_id: ProcessId, status: ProcessStatus) -> Self
Creates an outcome for a specific process ID.
Sourcepub const fn without_process(status: ProcessStatus) -> Self
pub const fn without_process(status: ProcessStatus) -> Self
Creates an outcome without process identity.
Sourcepub const fn process_id(&self) -> Option<ProcessId>
pub const fn process_id(&self) -> Option<ProcessId>
Returns the optional process ID.
Sourcepub const fn status(&self) -> &ProcessStatus
pub const fn status(&self) -> &ProcessStatus
Returns the status metadata.
Sourcepub const fn state(&self) -> ProcessState
pub const fn state(&self) -> ProcessState
Returns the process state.
Sourcepub const fn status_code(&self) -> Option<i32>
pub const fn status_code(&self) -> Option<i32>
Returns the optional numeric status code.
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 Hash for ProcessOutcome
impl Hash for ProcessOutcome
Source§impl Ord for ProcessOutcome
impl Ord for ProcessOutcome
Source§fn cmp(&self, other: &ProcessOutcome) -> Ordering
fn cmp(&self, other: &ProcessOutcome) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
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 ==.Source§impl PartialOrd for ProcessOutcome
impl PartialOrd for ProcessOutcome
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