Struct sysinfo::Component
[−]
[src]
pub struct Component { /* fields omitted */ }
More information can be found at http://lxr.free-electrons.com/source/Documentation/hwmon/sysfs-interface
Methods
impl Component
[src]
pub fn new(
label: String,
input_path: &Path,
max: Option<f32>,
critical: Option<f32>
) -> Component
[src]
label: String,
input_path: &Path,
max: Option<f32>,
critical: Option<f32>
) -> Component
Creates a new component with the given information.
pub fn update(&mut self)
[src]
Updates the component.
Trait Implementations
impl ComponentExt for Component
[src]
fn get_temperature(&self) -> f32
[src]
Returns the component's temperature (in celsius degree).
fn get_max(&self) -> f32
[src]
Returns the maximum temperature of this component.
fn get_critical(&self) -> Option<f32>
[src]
Returns the highest temperature before the computer halts.
fn get_label(&self) -> &str
[src]
Returns component's label.