pub enum ProcessState {
Running,
Sleeping,
Stopped,
Zombie,
Unknown,
}Expand description
Process state.
Maps platform-specific states to a common enum.
Variants§
Running
Process is running or runnable.
Sleeping
Process is sleeping (interruptible or uninterruptible).
Stopped
Process is stopped (e.g., by a signal).
Zombie
Process is a zombie (terminated but not reaped).
Unknown
Process state could not be determined.
Trait Implementations§
Source§impl Clone for ProcessState
impl Clone for ProcessState
impl Copy for ProcessState
Source§impl Debug for ProcessState
impl Debug for ProcessState
Source§impl<'de> Deserialize<'de> for ProcessState
impl<'de> Deserialize<'de> for ProcessState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ProcessState
Source§impl PartialEq for ProcessState
impl PartialEq for ProcessState
Source§impl Serialize for ProcessState
impl Serialize for ProcessState
impl StructuralPartialEq for ProcessState
Auto Trait Implementations§
impl Forget for ProcessState
impl Freeze for ProcessState
impl Move 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.