Process ID.
Can be used as an integer type by simple casting. For example:
use sysinfo::{PidExt, Pid}; // 0's type will be different depending on the platform! let p = Pid::from(0); // For something more "general": let p = Pid::from_u32(0); let i: u32 = p.as_u32();
On glibc systems this is a glibc pid_t
.
On Windows systems this is a usize
and represents a windows process identifier.
On unsupported systems, this is also a usize
.