Struct sysinfo::Process [] [src]

pub struct Process {
    pub name: String,
    pub cmd: Vec<String>,
    pub exe: String,
    pub pid: pid_t,
    pub parent: Option<pid_t>,
    pub environ: Vec<String>,
    pub cwd: String,
    pub root: String,
    pub memory: u64,
    pub start_time: u64,
    pub cpu_usage: f32,
    pub uid: uid_t,
    pub gid: gid_t,
    pub status: Option<ProcessStatus>,
    pub tasks: HashMap<pid_t, Process>,
    // some fields omitted
}

Struct containing a process' information.

Fields

Name of the program.

Command line, split into arguments.

Path to the executable.

Pid of the process.

Pid of the parent process.

Environment of the process.

Current working directory.

Path of the root directory.

Memory usage (in kB).

Time of process launch (in seconds).

Total cpu usage.

User id of the process owner.

Group id of the process owner.

Status of process (idle, run, zombie, etc). None means sysinfo doesn't have enough rights to get this information.

Tasks run by this process.

Trait Implementations

impl Clone for Process
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl ProcessExt for Process
[src]

Create a new process only containing the given information.

Sends the given signal to the process.

impl Debug for Process
[src]

Formats the value using the given formatter.