Struct sysinfo::System [] [src]

pub struct System {
    // some 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<usizeProcess>

fn get_process(&self, pid: i64) -> Option<&Process>

fn get_processor_list<'a>(&'a self) -> &'a [Processor]

The first process in the array is the "main" process

fn get_total_memory(&self) -> u64

fn get_used_memory(&self) -> u64

fn get_total_swap(&self) -> u64

fn get_used_swap(&self) -> u64

fn get_components_list<'a>(&'a self) -> &'a [Component]