#[non_exhaustive]pub struct MemoryEvents {
pub oom_kills: u64,
pub oom: u64,
pub max: u64,
pub high: u64,
pub scope: EventScope,
}Expand description
Out-of-memory events, counted since the cgroup (or the machine) started.
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.oom_kills: u64Processes the out-of-memory killer ended.
oom: u64Times the limit was reached and reclaim failed.
max: u64Times usage hit the hard limit.
high: u64Times usage went over the throttle point (memory.high).
scope: EventScopeWhether the counts are this cgroup’s or the whole machine’s.
Trait Implementations§
Source§impl Clone for MemoryEvents
impl Clone for MemoryEvents
impl Copy for MemoryEvents
Source§impl Debug for MemoryEvents
impl Debug for MemoryEvents
Source§impl Default for MemoryEvents
impl Default for MemoryEvents
impl Eq for MemoryEvents
Source§impl PartialEq for MemoryEvents
impl PartialEq for MemoryEvents
impl StructuralPartialEq for MemoryEvents
Auto Trait Implementations§
impl Forget for MemoryEvents
impl Freeze for MemoryEvents
impl RefUnwindSafe for MemoryEvents
impl Send for MemoryEvents
impl Sync for MemoryEvents
impl Unpin for MemoryEvents
impl UnsafeUnpin for MemoryEvents
impl UnwindSafe for MemoryEvents
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