Struct sysinfo::Component [] [src]

pub struct Component {
    pub temperature: f32,
    pub max: f32,
    pub critical: Option<f32>,
    pub label: String,
    // some fields omitted
}

Fields

temperature: f32

Temperature is in celsius.

max: f32

Temperature max value.

critical: Option<f32>

The highest temperature before the computer halts.

label: String

Component's label.

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)

Trait Implementations

impl Debug for Component
[src]

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

Formats the value using the given formatter.