Struct cgroups_rs::memory::MemSwap
source · [−]pub struct MemSwap {
pub fail_cnt: u64,
pub limit_in_bytes: i64,
pub usage_in_bytes: u64,
pub max_usage_in_bytes: u64,
}Expand description
Contains statistics about the current usage of memory and swap (together, not seperately) by the control group’s tasks.
Fields
fail_cnt: u64How many times the limit has been hit.
limit_in_bytes: i64Memory and swap usage limit in bytes.
usage_in_bytes: u64Current usage of memory and swap in bytes.
max_usage_in_bytes: u64The maximum observed usage of memory and swap in bytes.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MemSwap
impl Send for MemSwap
impl Sync for MemSwap
impl Unpin for MemSwap
impl UnwindSafe for MemSwap
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more