pub struct ModeReason {
pub mode: Mode,
pub key: String,
pub text: String,
}Expand description
One trigger that fired, for the header tooltip / why (“swap growing +420 MB/min”).
Fields§
§mode: Mode§key: StringStable key, e.g. “headroom_negative”, “swap_growing”, “oom_forecast”, “psi”, “memorystatus”, “throttle_factor”, “thermal_pressure”, “trip_point”, “low_power_mode”, “model_busy”, “build_active”, “orphans”, “idle_reclaimable”.
text: StringTrait Implementations§
Source§impl Clone for ModeReason
impl Clone for ModeReason
Source§impl Debug for ModeReason
impl Debug for ModeReason
Source§impl<'de> Deserialize<'de> for ModeReason
impl<'de> Deserialize<'de> for ModeReason
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
Source§impl PartialEq for ModeReason
impl PartialEq for ModeReason
Source§impl Serialize for ModeReason
impl Serialize for ModeReason
impl StructuralPartialEq for ModeReason
Auto Trait Implementations§
impl Forget for ModeReason
impl Freeze for ModeReason
impl Move for ModeReason
impl RefUnwindSafe for ModeReason
impl Send for ModeReasonwhere
RawVecInner: Send,
impl Sync for ModeReasonwhere
RawVecInner: Sync,
impl Unpin for ModeReason
impl UnsafeUnpin for ModeReason
impl UnwindSafe for ModeReasonwhere
RawVecInner: UnwindSafe,
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