pub struct Process {
pub uid: uid_t,
pub gid: gid_t,
pub tasks: HashMap<Pid, Process>,
/* private fields */
}
Expand description
Struct containing a process’ information.
Fields§
§uid: uid_t
User id of the process owner.
gid: gid_t
Group id of the process owner.
tasks: HashMap<Pid, Process>
Tasks run by this process.
Trait Implementations§
source§impl ProcessExt for Process
impl ProcessExt for Process
source§fn status(&self) -> ProcessStatus
fn status(&self) -> ProcessStatus
Returns the status of the processus (idle, run, zombie, etc). None
means that
sysinfo
doesn’t have enough rights to get this information.
source§fn new(pid: Pid, parent: Option<Pid>, start_time: u64) -> Process
fn new(pid: Pid, parent: Option<Pid>, start_time: u64) -> Process
Create a new process only containing the given information. Read more
source§fn start_time(&self) -> u64
fn start_time(&self) -> u64
Returns the time of process launch (in seconds).