Struct sysinfo::linux::system::System
[−]
[src]
pub struct System { /* fields omitted */ }
Methods
impl System
[src]
fn new() -> System
fn refresh_system(&mut self)
fn refresh_process(&mut self)
fn refresh_all(&mut self)
fn get_process_list<'a>(&'a self) -> &'a HashMap<usize, Process>
fn get_process(&self, pid: i64) -> Option<&Process>
Return the process corresponding to the given pid or None if no such process exists.
fn get_process_by_name(&self, name: &str) -> Vec<&Process>
Return a list of process starting with the given name.
fn get_processor_list<'a>(&'a self) -> &'a [Processor]
The first process in the array is the "main" process