heim_process/process/
status.rs

1/// Process status.
2///
3/// Returned by [Process::status] method.
4///
5/// [Process::status]: ./struct.Process.html#method.status
6#[derive(Copy, Clone, Debug, PartialOrd, Ord, PartialEq, Eq, Hash)]
7pub enum Status {
8    /// Running
9    Running,
10
11    /// Sleeping in an interruptible wait
12    Sleeping,
13
14    /// Waiting in uninterruptible disk sleep
15    Waiting,
16
17    /// Zombie
18    Zombie,
19
20    /// Stopped (on a signal)
21    ///
22    /// Or before Linux 2.6.33, trace stopped
23    Stopped,
24
25    /// Tracing stop (Linux 2.6.33 onward)
26    Tracing,
27
28    /// Dead
29    Dead,
30
31    /// Wakekill (Linux 2.6.33 to 3.13 only)
32    Wakekill,
33
34    /// Waking (Linux 2.6.33 to 3.13 only)
35    Waking,
36
37    /// Parked (P) (Linux 3.9 to 3.13 only)
38    Parked,
39
40    /// Idle
41    ///
42    /// ## Compatibility
43    ///
44    /// Applicable for Linux and macOS only.
45    Idle,
46}