pub struct MemorySnapshot {
pub max: Option<u64>,
pub current: Option<u64>,
pub high: Option<u64>,
}Expand description
A point-in-time view of the unit’s cgroup v2 memory interface.
Fields§
§max: Option<u64>Hard limit (memory.max); None = unlimited ("max") or unavailable.
current: Option<u64>Current charged usage (memory.current), in bytes.
high: Option<u64>Soft throttle threshold (memory.high); None = unset or unavailable.
Implementations§
Trait Implementations§
Source§impl Clone for MemorySnapshot
impl Clone for MemorySnapshot
Source§fn clone(&self) -> MemorySnapshot
fn clone(&self) -> MemorySnapshot
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 MemorySnapshot
Source§impl Debug for MemorySnapshot
impl Debug for MemorySnapshot
Source§impl Default for MemorySnapshot
impl Default for MemorySnapshot
Source§fn default() -> MemorySnapshot
fn default() -> MemorySnapshot
Returns the “default value” for a type. Read more
impl Eq for MemorySnapshot
Source§impl PartialEq for MemorySnapshot
impl PartialEq for MemorySnapshot
impl StructuralPartialEq for MemorySnapshot
Auto Trait Implementations§
impl Freeze for MemorySnapshot
impl RefUnwindSafe for MemorySnapshot
impl Send for MemorySnapshot
impl Sync for MemorySnapshot
impl Unpin for MemorySnapshot
impl UnsafeUnpin for MemorySnapshot
impl UnwindSafe for MemorySnapshot
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