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
mod env;
pub use self::env::*;
pub type Pid = libc::pid_t;
#[derive(Debug, Eq, PartialEq, Copy, Clone, Hash)]
pub enum ProcessState {
Running,
Sleeping,
DiskSleep,
Stopped,
TracingStop,
Zombie,
Dead,
WakeKill,
Waking,
#[cfg(any(doc, target_os = "linux"))]
Parked,
#[cfg(any(doc, target_os = "linux", target_os = "freebsd", target_os = "dragonfly", target_os = "macos"))]
Idle,
#[cfg(any(doc, target_os = "freebsd", target_os = "dragonfly"))]
Locked,
#[cfg(any(doc, target_os = "freebsd", target_os = "dragonfly"))]
Waiting,
#[cfg(any(doc, target_os = "freebsd", target_os = "dragonfly"))]
Suspended,
#[doc(hidden)]
__Nonexhaustive,
}