pub enum CgroupMemoryObservation {
NotPresent,
V2Unbounded {
cgroup_path: Box<str>,
inspected_levels: usize,
},
V2Limited(CgroupMemoryAvailability),
V1Limited(CgroupMemoryAvailability),
ProbeFailed(CgroupMemoryProbeFailure),
}Expand description
The process’ typed cgroup memory provenance.
Variants§
NotPresent
No active memory controller applies on this platform/hierarchy.
V2Unbounded
A cgroup-v2 hierarchy was found, but every visible hard limit was the
literal max token (or the process is at the unconstrained root).
V2Limited(CgroupMemoryAvailability)
At least one finite hard ceiling applies. This carries the ancestor with the least reclaim-aware headroom.
V1Limited(CgroupMemoryAvailability)
A cgroup-v1 memory hierarchy is active. V1 exposes its unlimited state as an architecture-dependent numeric sentinel rather than a token, so every visible numeric ceiling participates in the minimum; an enormous sentinel naturally loses to host availability.
ProbeFailed(CgroupMemoryProbeFailure)
A memory controller appears active but its semantics could not be read exactly. Admission must fail closed rather than inherit host memory.
Trait Implementations§
Source§impl Clone for CgroupMemoryObservation
impl Clone for CgroupMemoryObservation
Source§fn clone(&self) -> CgroupMemoryObservation
fn clone(&self) -> CgroupMemoryObservation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CgroupMemoryObservation
impl Debug for CgroupMemoryObservation
Source§impl Display for CgroupMemoryObservation
impl Display for CgroupMemoryObservation
impl Eq for CgroupMemoryObservation
Source§impl PartialEq for CgroupMemoryObservation
impl PartialEq for CgroupMemoryObservation
impl StructuralPartialEq for CgroupMemoryObservation
Auto Trait Implementations§
impl Freeze for CgroupMemoryObservation
impl RefUnwindSafe for CgroupMemoryObservation
impl Send for CgroupMemoryObservation
impl Sync for CgroupMemoryObservation
impl Unpin for CgroupMemoryObservation
impl UnsafeUnpin for CgroupMemoryObservation
impl UnwindSafe for CgroupMemoryObservation
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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more