Struct sysinfo::Process [] [src]

pub struct Process {
    pub uid: uid_t,
    pub gid: gid_t,
    pub status: Option<ThreadStatus>,
    // some fields omitted
}

Struct containing a process' information.

Fields

User id of the process owner.

Group id of the process owner.

Status of process (running, stopped, waiting, etc). None means sysinfo doesn't have enough rights to get this information.

This is very likely this one that you want instead of process_status.

Trait Implementations

impl Clone for Process
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl ProcessExt for Process
[src]

[src]

Create a new process only containing the given information. Read more

[src]

Sends the given signal to the process.

[src]

Returns the name of the processus.

[src]

Returns the command line.

[src]

Returns the path to the processus.

[src]

Returns the pid of the processus.

[src]

Returns the environment of the process. Read more

[src]

Returns the current working directory.

[src]

Returns the path of the root directory.

[src]

Returns the memory usage (in kB).

[src]

Returns the parent pid.

[src]

Returns the status of the processus.

[src]

Returns the time of process launch (in seconds).

[src]

Return the total CPU usage.

impl Debug for Process
[src]

[src]

Formats the value using the given formatter.