Struct sysinfo::Component
[−]
[src]
pub struct Component {
pub temperature: f32,
pub max: f32,
pub critical: Option<f32>,
pub label: String,
}Struct containing a component information (temperature and name for the moment).
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 new(label: String, max: Option<f32>, critical: Option<f32>) -> Component[src]
Creates a new Component with the given information.