pub enum LimitKind {
Container,
Pod,
Cgroup,
Vm,
}Expand description
What carries the limit.
Variants§
Container
A container (engine limit or its cgroup).
Pod
A Kubernetes pod-level cgroup (sum of its containers’ limits).
Cgroup
Any other cgroup with memory.max / memory.high (a systemd unit with MemoryMax=, a
systemd-run -p MemoryMax= sandbox, a kubelet QoS slice).
Vm
An engine VM (Docker Desktop, OrbStack, Colima…): Σ container memory against the VM’s memory.
Implementations§
Trait Implementations§
impl Copy for LimitKind
Source§impl<'de> Deserialize<'de> for LimitKind
impl<'de> Deserialize<'de> for LimitKind
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
impl Eq for LimitKind
Source§impl Ord for LimitKind
impl Ord for LimitKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for LimitKind
impl PartialOrd for LimitKind
impl StructuralPartialEq for LimitKind
Auto Trait Implementations§
impl Forget for LimitKind
impl Freeze for LimitKind
impl Move for LimitKind
impl RefUnwindSafe for LimitKind
impl Send for LimitKind
impl Sync for LimitKind
impl Unpin for LimitKind
impl UnsafeUnpin for LimitKind
impl UnwindSafe for LimitKind
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