pub enum ThermalState {
Unknown,
Nominal,
Fair,
Serious,
Critical,
}Expand description
Thermal pressure as the OS reports it (ProcessInfo.thermalState, PowerManager thermal
status, the web Compute Pressure API — all four share this vocabulary).
Variants§
Unknown
The platform has no thermal source: no pressure assumed, no change event.
Nominal
No thermal pressure; sent as nominal.
Fair
Slightly raised thermal pressure; sent as fair.
Serious
High thermal pressure; sent as serious.
Critical
Pressure high enough to cut performance until the device cools; sent as critical.
Trait Implementations§
Source§impl Clone for ThermalState
impl Clone for ThermalState
impl Copy for ThermalState
Source§impl Debug for ThermalState
impl Debug for ThermalState
Source§impl Default for ThermalState
impl Default for ThermalState
impl Eq for ThermalState
Source§impl PartialEq for ThermalState
impl PartialEq for ThermalState
impl StructuralPartialEq for ThermalState
Auto Trait Implementations§
impl Forget for ThermalState
impl Freeze for ThermalState
impl Move for ThermalState
impl RefUnwindSafe for ThermalState
impl Send for ThermalState
impl Sync for ThermalState
impl Unpin for ThermalState
impl UnsafeUnpin for ThermalState
impl UnwindSafe for ThermalState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more