Struct sysinfo::linux::component::Component
[−]
[src]
pub struct Component { pub temperature: f32, pub max: f32, pub critical: Option<f32>, pub label: String, // some fields omitted }
More information can be found at http://lxr.free-electrons.com/source/Documentation/hwmon/sysfs-interface
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
input_path: &Path,
max: Option<f32>,
critical: Option<f32>)
-> Component