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 }
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
Methods
impl Process
[src]
fn new(pid: pid_t, parent: Option<pid_t>, start_time: u64) -> Process
fn kill(&self, signal: Signal) -> bool
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