Struct sysinfo::Component
[−]
[src]
pub struct Component { /* fields omitted */ }
Struct containing a component information (temperature and name for the moment).
Methods
impl Component
[src]
fn new(label: String, max: Option<f32>, critical: Option<f32>) -> Component
[src]
Creates a new Component
with the given information.
Trait Implementations
impl ComponentExt for Component
[src]
fn get_temperature(&self) -> f32
[src]
Returns the component's temperature (in celsius degree).
fn get_max(&self) -> f32
[src]
Returns the maximum temperature of this component.
fn get_critical(&self) -> Option<f32>
[src]
Returns the highest temperature before the computer halts.
fn get_label(&self) -> &str
[src]
Returns component's label.