pub struct OomThreshold {
pub killer: OomKiller,
pub metric: ThresholdMetric,
pub value: f64,
pub duration_s: Option<u32>,
pub source: String,
}Expand description
A threshold at which a killer acts, e.g. systemd-oomd “swap used > 90 %”.
Fields§
§killer: OomKiller§metric: ThresholdMetric§value: f64§duration_s: Option<u32>Sustained duration required, if any (oomd: 30 s).
source: StringWhere the threshold came from (“oomd.conf”, “earlyoom argv”, “default”).
Trait Implementations§
Source§impl Clone for OomThreshold
impl Clone for OomThreshold
Source§impl Debug for OomThreshold
impl Debug for OomThreshold
Source§impl Default for OomThreshold
impl Default for OomThreshold
Source§impl<'de> Deserialize<'de> for OomThresholdwhere
OomThreshold: Default,
impl<'de> Deserialize<'de> for OomThresholdwhere
OomThreshold: Default,
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 OomThreshold
impl PartialEq for OomThreshold
Source§impl Serialize for OomThreshold
impl Serialize for OomThreshold
impl StructuralPartialEq for OomThreshold
Auto Trait Implementations§
impl Forget for OomThreshold
impl Freeze for OomThreshold
impl Move for OomThreshold
impl RefUnwindSafe for OomThreshold
impl Send for OomThresholdwhere
RawVecInner: Send,
impl Sync for OomThresholdwhere
RawVecInner: Sync,
impl Unpin for OomThreshold
impl UnsafeUnpin for OomThreshold
impl UnwindSafe for OomThresholdwhere
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