#[non_exhaustive]pub struct MemoryLimit {
pub hard: Bytes,
pub soft: Option<Bytes>,
pub swap: Option<Bytes>,
pub source: LimitSource,
}Expand description
A memory limit on this process.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.hard: BytesThe hard limit: the out-of-memory killer acts at this size.
soft: Option<Bytes>The throttle point (cgroup v2 memory.high, v1 soft limit), when set.
swap: Option<Bytes>The swap limit, when set.
source: LimitSourceWhere the limit came from.
Trait Implementations§
Source§impl Clone for MemoryLimit
impl Clone for MemoryLimit
impl Copy for MemoryLimit
Source§impl Debug for MemoryLimit
impl Debug for MemoryLimit
impl Eq for MemoryLimit
Source§impl PartialEq for MemoryLimit
impl PartialEq for MemoryLimit
impl StructuralPartialEq for MemoryLimit
Auto Trait Implementations§
impl Forget for MemoryLimit
impl Freeze for MemoryLimit
impl Move for MemoryLimit
impl RefUnwindSafe for MemoryLimit
impl Send for MemoryLimit
impl Sync for MemoryLimit
impl Unpin for MemoryLimit
impl UnsafeUnpin for MemoryLimit
impl UnwindSafe for MemoryLimit
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