pub enum ThermalState {
Normal,
Warm,
Hot,
Critical,
Unknown,
}Expand description
Thermal state classification from CPU/package temperature.
Variants§
Normal
Below 60°C — normal operation.
Warm
60–75°C — elevated, may throttle.
Hot
75–90°C — hot, should reduce load.
Critical
Above 90°C — critical, must shed load.
Unknown
Temperature could not be read.
Implementations§
Source§impl ThermalState
impl ThermalState
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<'de> Deserialize<'de> for ThermalState
impl<'de> Deserialize<'de> for ThermalState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ThermalState
Source§impl PartialEq for ThermalState
impl PartialEq for ThermalState
Source§impl Serialize for ThermalState
impl Serialize for ThermalState
impl StructuralPartialEq for ThermalState
Auto Trait Implementations§
impl Freeze 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