1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/// Process status.
///
/// Returned by [Process::status] method.
///
/// [Process::status]: ./struct.Process.html#method.status
#[derive(Copy, Clone, Debug, PartialOrd, Ord, PartialEq, Eq, Hash)]
pub enum Status {
    /// Running
    Running,

    /// Sleeping in an interruptible wait
    Sleeping,

    /// Waiting in uninterruptible disk sleep
    Waiting,

    /// Zombie
    Zombie,

    /// Stopped (on a signal)
    ///
    /// Or before Linux 2.6.33, trace stopped
    Stopped,

    /// Tracing stop (Linux 2.6.33 onward)
    Tracing,

    /// Dead
    Dead,

    /// Wakekill (Linux 2.6.33 to 3.13 only)
    Wakekill,

    /// Waking (Linux 2.6.33 to 3.13 only)
    Waking,

    /// Parked (P) (Linux 3.9 to 3.13 only)
    Parked,

    /// Idle
    ///
    /// ## Compatibility
    ///
    /// Applicable for Linux and macOS only.
    Idle,
}