pub enum CauseKind {
OomImminent,
SwapStorm,
MemoryPressure,
ThermalThrottle,
LowPowerMode,
LowBattery,
GpuThrottle,
CpuSaturated,
}Variants§
OomImminent
SwapStorm
MemoryPressure
ThermalThrottle
LowPowerMode
LowBattery
GpuThrottle
CpuSaturated
Implementations§
Trait Implementations§
impl Copy for CauseKind
Source§impl<'de> Deserialize<'de> for CauseKind
impl<'de> Deserialize<'de> for CauseKind
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 CauseKind
Source§impl Ord for CauseKind
impl Ord for CauseKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for CauseKind
impl PartialOrd for CauseKind
impl StructuralPartialEq for CauseKind
Auto Trait Implementations§
impl Forget for CauseKind
impl Freeze for CauseKind
impl Move for CauseKind
impl RefUnwindSafe for CauseKind
impl Send for CauseKind
impl Sync for CauseKind
impl Unpin for CauseKind
impl UnsafeUnpin for CauseKind
impl UnwindSafe for CauseKind
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