Trait sysinfo::ComponentExt
source · pub trait ComponentExt {
fn get_temperature(&self) -> f32;
fn get_max(&self) -> f32;
fn get_critical(&self) -> Option<f32>;
fn get_label(&self) -> &str;
}
Expand description
Getting a component temperature information.
Required Methods§
sourcefn get_temperature(&self) -> f32
fn get_temperature(&self) -> f32
Returns the component’s temperature (in celsius degree).
sourcefn get_critical(&self) -> Option<f32>
fn get_critical(&self) -> Option<f32>
Returns the highest temperature before the computer halts.