Enum sysinfo::ProcessStatus
source · pub enum ProcessStatus {
Idle,
Run,
Sleep,
Stop,
Zombie,
Tracing,
Dead,
Wakekill,
Waking,
Parked,
LockBlocked,
Unknown(u32),
}
Expand description
Enum describing the different status of a process.
Variants§
Idle
§Linux/FreeBSD
Waiting in uninterruptible disk sleep.
§macOs
Process being created by fork.
§Other OS
Not available.
Run
Running.
Sleep
§Linux/FreeBSD
Sleeping in an interruptible waiting.
§macOS
Sleeping on an address.
§Other OS
Not available.
Stop
§Linux/FreeBSD
Stopped (on a signal) or (before Linux 2.6.33) trace stopped.
§macOS
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
Wakekill
Waking
Parked
LockBlocked
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 copy of the value. Read more
1.0.0 · 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 ProcessStatus
impl Debug for ProcessStatus
source§impl Display for ProcessStatus
impl Display for ProcessStatus
source§impl PartialEq for ProcessStatus
impl PartialEq 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§
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)