[][src]Trait sysinfo::ProcessorExt

pub trait ProcessorExt {
    fn get_cpu_usage(&self) -> f32;
fn get_name(&self) -> &str; }

Contains all the methods of the Processor struct.

Required methods

fn get_cpu_usage(&self) -> f32

Returns this processor's usage.

Note: You'll need to refresh it at least twice at first if you want to have a non-zero value.

fn get_name(&self) -> &str

Returns this processor's name.

Loading content...

Implementors

impl ProcessorExt for Processor[src]

Loading content...