pub enum Status {
Show 14 variants
Running,
Sleeping,
DiskSleep,
Stopped,
TracingStop,
Zombie,
Dead,
WakeKill,
Waking,
Parked,
Idle,
Locked,
Waiting,
Suspended,
}
Expand description
Possible statuses for a process.
Variants§
Running
(R)
Sleeping
(S) Sleeping in an interruptible wait
DiskSleep
(D) Waiting in uninterruptible disk sleep
Stopped
(T) Stopped (on a signal)
Or before Linux 2.6.33, trace stopped
TracingStop
(t) (Linux 2.6.33 onward)
Zombie
(Z)
Dead
(X)
WakeKill
(Linux 2.6.33 to 3.13 only)
Waking
(Linux 2.6.33 to 3.13 only)
Parked
(P) (Linux 3.9 to 3.13 only)
Idle
(I) (Linux, macOS, FreeBSD)
Locked
(FreeBSD)
Waiting
(FreeBSD)
Suspended
(NetBSD)
Trait Implementations§
Source§impl TryFrom<char> for Status
Returns a Status based on a status character from /proc/[pid]/stat
.
impl TryFrom<char> for Status
Returns a Status based on a status character from /proc/[pid]/stat
.
See array.c:115 and proc(5).
impl Copy for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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