pub trait ThermalGovernor: Send + Sync {
// Required method
fn get_thermal_state(&self) -> ThermalStatus;
// Provided method
fn adjust_policy(&self, status: ThermalStatus) { ... }
}Required Methods§
Sourcefn get_thermal_state(&self) -> ThermalStatus
fn get_thermal_state(&self) -> ThermalStatus
Returns the current thermal state of the host device.
Provided Methods§
Sourcefn adjust_policy(&self, status: ThermalStatus)
fn adjust_policy(&self, status: ThermalStatus)
Optional hook for the governor to self-adjust or log transitions.