Struct oci_spec::runtime::LinuxMemory
source · pub struct LinuxMemory { /* private fields */ }
Expand description
LinuxMemory for Linux cgroup ‘memory’ resource management.
Implementations§
source§impl LinuxMemory
impl LinuxMemory
sourcepub fn reservation(&self) -> Option<i64>
pub fn reservation(&self) -> Option<i64>
Memory reservation or soft_limit (in bytes).
sourcepub fn kernel_tcp(&self) -> Option<i64>
pub fn kernel_tcp(&self) -> Option<i64>
Kernel memory limit for tcp (in bytes).
sourcepub fn swappiness(&self) -> Option<u64>
pub fn swappiness(&self) -> Option<u64>
How aggressive the kernel will swap memory pages.
sourcepub fn disable_oom_killer(&self) -> Option<bool>
pub fn disable_oom_killer(&self) -> Option<bool>
DisableOOMKiller disables the OOM killer for out of memory conditions.
sourcepub fn use_hierarchy(&self) -> Option<bool>
pub fn use_hierarchy(&self) -> Option<bool>
Enables hierarchical memory accounting
sourcepub fn check_before_update(&self) -> Option<bool>
pub fn check_before_update(&self) -> Option<bool>
Enables checking if a new memory limit is lower
Trait Implementations§
source§impl Clone for LinuxMemory
impl Clone for LinuxMemory
source§fn clone(&self) -> LinuxMemory
fn clone(&self) -> LinuxMemory
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LinuxMemory
impl Debug for LinuxMemory
source§impl Default for LinuxMemory
impl Default for LinuxMemory
source§fn default() -> LinuxMemory
fn default() -> LinuxMemory
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for LinuxMemory
impl<'de> Deserialize<'de> for LinuxMemory
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 LinuxMemory
impl PartialEq for LinuxMemory
source§fn eq(&self, other: &LinuxMemory) -> bool
fn eq(&self, other: &LinuxMemory) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LinuxMemory
impl Serialize for LinuxMemory
impl Copy for LinuxMemory
impl Eq for LinuxMemory
impl StructuralPartialEq for LinuxMemory
Auto Trait Implementations§
impl Freeze for LinuxMemory
impl RefUnwindSafe for LinuxMemory
impl Send for LinuxMemory
impl Sync for LinuxMemory
impl Unpin for LinuxMemory
impl UnwindSafe for LinuxMemory
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)