Skip to main content

ThermalGovernor

Trait ThermalGovernor 

Source
pub trait ThermalGovernor: Send + Sync {
    // Required method
    fn get_thermal_state(&self) -> ThermalStatus;

    // Provided method
    fn adjust_policy(&self, status: ThermalStatus) { ... }
}

Required Methods§

Source

fn get_thermal_state(&self) -> ThermalStatus

Returns the current thermal state of the host device.

Provided Methods§

Source

fn adjust_policy(&self, status: ThermalStatus)

Optional hook for the governor to self-adjust or log transitions.

Implementors§