pub struct Component { /* private fields */ }
Expand description
Struct containing a component information (temperature and name for the moment).
Implementations§
Trait Implementations§
source§impl ComponentExt for Component
impl ComponentExt for Component
source§fn get_temperature(&self) -> f32
fn get_temperature(&self) -> f32
Returns the component’s temperature (in celsius degree).
source§fn get_critical(&self) -> Option<f32>
fn get_critical(&self) -> Option<f32>
Returns the highest temperature before the computer halts.