pub struct OomdConfig {
pub swap_used_limit_pct: f64,
pub mem_pressure_limit_pct: f64,
pub mem_pressure_duration_s: u32,
pub source: String,
}Expand description
systemd-oomd global settings (/etc/systemd/oomd.conf + drop-ins, [OOM] section).
Fields§
§swap_used_limit_pct: f64§mem_pressure_limit_pct: f64§mem_pressure_duration_s: u32§source: String“default” or the last file that set a value.
Trait Implementations§
Source§impl Clone for OomdConfig
impl Clone for OomdConfig
Source§impl Debug for OomdConfig
impl Debug for OomdConfig
Source§impl Default for OomdConfig
impl Default for OomdConfig
Source§impl<'de> Deserialize<'de> for OomdConfigwhere
OomdConfig: Default,
impl<'de> Deserialize<'de> for OomdConfigwhere
OomdConfig: 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 OomdConfig
impl PartialEq for OomdConfig
Source§impl Serialize for OomdConfig
impl Serialize for OomdConfig
impl StructuralPartialEq for OomdConfig
Auto Trait Implementations§
impl Forget for OomdConfig
impl Freeze for OomdConfig
impl Move for OomdConfig
impl RefUnwindSafe for OomdConfig
impl Send for OomdConfigwhere
RawVecInner: Send,
impl Sync for OomdConfigwhere
RawVecInner: Sync,
impl Unpin for OomdConfig
impl UnsafeUnpin for OomdConfig
impl UnwindSafe for OomdConfigwhere
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