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§
Sourcefn thermal_status(&self) -> ThermalStatus
fn thermal_status(&self) -> ThermalStatus
Returns the current thermal status.
Sourcefn battery_level(&self) -> BatteryLevel
fn battery_level(&self) -> BatteryLevel
Returns the current battery/power level.