HardwareMonitor

Trait HardwareMonitor 

Source
pub trait HardwareMonitor: Send + Sync {
    // Required methods
    fn thermal_status(&self) -> ThermalStatus;
    fn battery_level(&self) -> BatteryLevel;
    fn cpu_load(&self) -> f32;
}
Expand description

Trait for observing the physical state of the host platform.

Required Methods§

Source

fn thermal_status(&self) -> ThermalStatus

Returns the current thermal status.

Source

fn battery_level(&self) -> BatteryLevel

Returns the current battery/power level.

Source

fn cpu_load(&self) -> f32

Returns the current overall CPU load (0.0 to 1.0).

Implementors§