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, // some fields omitted }
Struct containing a process' information.
Fields
name: String
Name of the program.
cmd: Vec<String>
Command line, split into arguments.
exe: String
Path to the executable.
pid: pid_t
Pid of the process.
parent: Option<pid_t>
Pid of the parent process.
environ: Vec<String>
Environment of the process.
cwd: String
Current working directory.
root: String
Path of the root directory.
memory: u64
Memory usage (in kB).
start_time: u64
Time of process launch (in seconds).
cpu_usage: f32
Total cpu usage.
uid: uid_t
User id of the process owner.
gid: gid_t
Group id of the process owner.
Trait Implementations
impl Clone for Process
[src]
fn clone(&self) -> Process
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl ProcessExt for Process
[src]
fn new(pid: pid_t, parent: Option<pid_t>, start_time: u64) -> Process
Create a new process only containing the given information.
fn kill(&self, signal: Signal) -> bool
Sends the given signal
to the process.