pub enum ProcessState {
Created,
Running,
Exited,
Failed,
Unknown,
}Expand description
Plain process lifecycle state vocabulary.
Variants§
Created
A process-like unit has been described or created.
Running
A process-like unit is running.
Exited
A process-like unit exited.
Failed
A process-like unit failed.
Unknown
The state is unknown.
Trait Implementations§
Source§impl Clone for ProcessState
impl Clone for ProcessState
Source§fn clone(&self) -> ProcessState
fn clone(&self) -> ProcessState
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 ProcessState
impl Debug for ProcessState
Source§impl Display for ProcessState
impl Display for ProcessState
Source§impl FromStr for ProcessState
impl FromStr for ProcessState
Source§type Err = ProcessStateParseError
type Err = ProcessStateParseError
The associated error which can be returned from parsing.
Source§fn from_str(value: &str) -> Result<ProcessState, <ProcessState as FromStr>::Err>
fn from_str(value: &str) -> Result<ProcessState, <ProcessState as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for ProcessState
impl Hash for ProcessState
Source§impl Ord for ProcessState
impl Ord for ProcessState
Source§fn cmp(&self, other: &ProcessState) -> Ordering
fn cmp(&self, other: &ProcessState) -> 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 ProcessState
impl PartialEq for ProcessState
Source§fn eq(&self, other: &ProcessState) -> bool
fn eq(&self, other: &ProcessState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ProcessState
impl PartialOrd for ProcessState
impl Copy for ProcessState
impl Eq for ProcessState
impl StructuralPartialEq for ProcessState
Auto Trait Implementations§
impl Freeze for ProcessState
impl RefUnwindSafe for ProcessState
impl Send for ProcessState
impl Sync for ProcessState
impl Unpin for ProcessState
impl UnsafeUnpin for ProcessState
impl UnwindSafe for ProcessState
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