pub struct MemoryStats {
pub usage: u64,
pub max_usage: u64,
pub limit: i64,
pub fail_cnt: u64,
}Fields§
§usage: u64Memory [swap] usage, read from memory[.memsw].usage_in_bytes in
cgroups v1 and memory[.swap].current in cgroups v2.
max_usage: u64Maximum memory [swap] usage observed by cgroups, read from
memory[.memsw].max_usage_in_bytes in cgroups v1 and
memory[.swap].peak in cgroups v2.
limit: i64Memory [swap] limit, read from memory[.memsw].limit_in_bytes in
cgroups v1 and memory[.swap].max in cgroups v2.
fail_cnt: u64Failure count, read from memory[.memsw].failcnt. Only available in
cgroups v1.
Trait Implementations§
Source§impl Debug for MemoryStats
impl Debug for MemoryStats
Source§impl Default for MemoryStats
impl Default for MemoryStats
Source§fn default() -> MemoryStats
fn default() -> MemoryStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MemoryStats
impl RefUnwindSafe for MemoryStats
impl Send for MemoryStats
impl Sync for MemoryStats
impl Unpin for MemoryStats
impl UnwindSafe for MemoryStats
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