Struct sysinfo::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 new(
label: String,
input_path: &Path,
max: Option<f32>,
critical: Option<f32>
) -> Component
label: String,
input_path: &Path,
max: Option<f32>,
critical: Option<f32>
) -> Component
Creates a new component with the given information.
fn update(&mut self)
Updates the component.