Struct sysinfo::Component [] [src]

pub struct Component {
    // some fields omitted
}

Methods

impl Component
[src]

fn get_components() -> Vec<Component>

fn new(label: String, input_path: &Path, max: Option<f32>, critical: Option<f32>) -> Component

fn update(&mut self)

fn get_label(&self) -> &str

fn get_temperature(&self) -> f32

fn get_max(&self) -> f32

fn get_critical(&self) -> Option<f32>

Trait Implementations

impl Debug for Component
[src]

fn fmt(&self, f: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.