pub enum ProcessStatus {
Show 13 variants
Idle,
Run,
Sleep,
Stop,
Zombie,
Tracing,
Dead,
Wakekill,
Waking,
Parked,
LockBlocked,
UninterruptibleDiskSleep,
Unknown(u32),
}Expand description
Enum describing the different status of a process.
Variants§
Idle
Run
Running.
Sleep
§Linux
Sleeping in an interruptible waiting.
§macOS/FreeBSD
Sleeping on an address.
§Other OS
Not available.
Stop
§Linux
Stopped (on a signal) or (before Linux 2.6.33) trace stopped.
§macOS/FreeBSD
Process debugging or suspension.
§Other OS
Not available.
Zombie
§Linux/FreeBSD/macOS
Zombie process. Terminated but not reaped by its parent.
§Other OS
Not available.
Tracing
§Linux
Tracing stop (Linux 2.6.33 onward). Stopped by debugger during the tracing.
§Other OS
Not available.
Dead
§Linux
Dead/uninterruptible sleep (usually IO).
§FreeBSD
A process should never end up in this state.
§Other OS
Not available.
Wakekill
Waking
Parked
LockBlocked
UninterruptibleDiskSleep
Unknown(u32)
Unknown.
Trait Implementations§
Source§impl Clone for ProcessStatus
impl Clone for ProcessStatus
Source§fn clone(&self) -> ProcessStatus
fn clone(&self) -> ProcessStatus
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProcessStatus
impl Debug for ProcessStatus
Source§impl<'de> Deserialize<'de> for ProcessStatus
impl<'de> Deserialize<'de> for ProcessStatus
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
Source§impl Display for ProcessStatus
impl Display for ProcessStatus
Source§impl Hash for ProcessStatus
impl Hash for ProcessStatus
Source§impl Ord for ProcessStatus
impl Ord for ProcessStatus
Source§impl PartialEq for ProcessStatus
impl PartialEq for ProcessStatus
Source§impl PartialOrd for ProcessStatus
impl PartialOrd for ProcessStatus
Source§fn partial_cmp(&self, other: &ProcessStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &ProcessStatus) -> Option<Ordering>
Source§impl Serialize for ProcessStatus
impl Serialize for ProcessStatus
impl Copy for ProcessStatus
impl Eq for ProcessStatus
impl StructuralPartialEq for ProcessStatus
Auto Trait Implementations§
impl Freeze for ProcessStatus
impl RefUnwindSafe for ProcessStatus
impl Send for ProcessStatus
impl Sync for ProcessStatus
impl Unpin for ProcessStatus
impl UnwindSafe for ProcessStatus
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)