pub struct MemoryAvailabilityLowRule { /* private fields */ }Expand description
Available memory sustained below its threshold (§11.2).
Judged against the ceiling that actually applies to this process tree — the cgroup limit where there is one, the host total otherwise (§9.2) — and reported alongside the platform’s memory semantics, because §8.4 forbids treating the two definitions as interchangeable.
The finding says available memory is low. It draws no conclusion about what will happen next: §11.3 forbids diagnosing a kill or an allocation failure from an availability figure.
Implementations§
Source§impl MemoryAvailabilityLowRule
impl MemoryAvailabilityLowRule
Sourcepub const fn new(thresholds: Thresholds) -> Self
pub const fn new(thresholds: Thresholds) -> Self
Builds the rule from sanitized thresholds.
Trait Implementations§
Source§impl Clone for MemoryAvailabilityLowRule
impl Clone for MemoryAvailabilityLowRule
Source§fn clone(&self) -> MemoryAvailabilityLowRule
fn clone(&self) -> MemoryAvailabilityLowRule
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 moreimpl Copy for MemoryAvailabilityLowRule
Source§impl Debug for MemoryAvailabilityLowRule
impl Debug for MemoryAvailabilityLowRule
Auto Trait Implementations§
impl Freeze for MemoryAvailabilityLowRule
impl RefUnwindSafe for MemoryAvailabilityLowRule
impl Send for MemoryAvailabilityLowRule
impl Sync for MemoryAvailabilityLowRule
impl Unpin for MemoryAvailabilityLowRule
impl UnsafeUnpin for MemoryAvailabilityLowRule
impl UnwindSafe for MemoryAvailabilityLowRule
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