Struct sysinfo::Process
[−]
[src]
pub struct Process { pub name: String, pub cmd: String, pub exe: String, pub pid: Pid, pub environ: Vec<String>, pub cwd: String, pub root: String, pub memory: u64, pub parent: Option<Pid>, pub status: ProcessStatus, pub start_time: u64, pub cpu_usage: f32, // some fields omitted }
Struct containing a process' information.
Fields
name: String
name of the program
cmd: String
command line
exe: String
path to the executable
pid: Pid
pid of the processus
environ: Vec<String>
Environment of the process.
Always empty except for current process.
cwd: String
current working directory
root: String
path of the root directory
memory: u64
memory usage (in kB)
parent: Option<Pid>
Parent pid.
status: ProcessStatus
Status of the Process.
start_time: u64
time of process launch (in seconds)
cpu_usage: f32
total cpu usage
Trait Implementations
impl Clone for Process
[src]
fn clone(&self) -> Process
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl ProcessExt for Process
[src]
fn new(pid: Pid, parent: Option<Pid>, _: u64) -> Process
[src]
Create a new process only containing the given information. Read more
fn kill(&self, signal: Signal) -> bool
[src]
Sends the given signal
to the process.