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: u64

How many times the limit has been hit.

§limit_in_bytes: i64

Memory and swap usage limit in bytes.

§usage_in_bytes: u64

Current usage of memory and swap in bytes.

§max_usage_in_bytes: u64

The maximum observed usage of memory and swap in bytes.

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.