pub struct EarlyoomConfig {
pub mem_term_pct: f64,
pub mem_kill_pct: f64,
pub swap_term_pct: f64,
pub swap_kill_pct: f64,
pub mem_term_kib: Option<u64>,
pub mem_kill_kib: Option<u64>,
pub swap_term_kib: Option<u64>,
pub swap_kill_kib: Option<u64>,
}Expand description
earlyoom settings from its argv (-m PERCENT[,KILL], -s PERCENT[,KILL], -M KiB[,KILL],
-S KiB[,KILL]). SIGTERM thresholds are the ones that matter for a forecast.
Fields§
§mem_term_pct: f64§mem_kill_pct: f64§swap_term_pct: f64§swap_kill_pct: f64§mem_term_kib: Option<u64>§mem_kill_kib: Option<u64>§swap_term_kib: Option<u64>§swap_kill_kib: Option<u64>Trait Implementations§
Source§impl Clone for EarlyoomConfig
impl Clone for EarlyoomConfig
Source§impl Debug for EarlyoomConfig
impl Debug for EarlyoomConfig
Source§impl Default for EarlyoomConfig
impl Default for EarlyoomConfig
Source§impl<'de> Deserialize<'de> for EarlyoomConfigwhere
EarlyoomConfig: Default,
impl<'de> Deserialize<'de> for EarlyoomConfigwhere
EarlyoomConfig: 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 EarlyoomConfig
impl PartialEq for EarlyoomConfig
Source§impl Serialize for EarlyoomConfig
impl Serialize for EarlyoomConfig
impl StructuralPartialEq for EarlyoomConfig
Auto Trait Implementations§
impl Forget for EarlyoomConfig
impl Freeze for EarlyoomConfig
impl Move for EarlyoomConfig
impl RefUnwindSafe for EarlyoomConfig
impl Send for EarlyoomConfig
impl Sync for EarlyoomConfig
impl Unpin for EarlyoomConfig
impl UnsafeUnpin for EarlyoomConfig
impl UnwindSafe for EarlyoomConfig
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