pub struct CgroupMemory {
pub max: Option<u64>,
pub current: u64,
pub file: u64,
}Expand description
Memory use and limit of a cgroup v2 cgroup.
Fields§
§max: Option<u64>memory.max, or None when the cgroup has no limit.
current: u64memory.current, which counts page cache too.
file: u64file in memory.stat: the page cache.
Trait Implementations§
Source§impl Clone for CgroupMemory
impl Clone for CgroupMemory
impl Copy for CgroupMemory
Source§impl Debug for CgroupMemory
impl Debug for CgroupMemory
impl Eq for CgroupMemory
Source§impl PartialEq for CgroupMemory
impl PartialEq for CgroupMemory
impl StructuralPartialEq for CgroupMemory
Auto Trait Implementations§
impl Forget for CgroupMemory
impl Freeze for CgroupMemory
impl Move for CgroupMemory
impl RefUnwindSafe for CgroupMemory
impl Send for CgroupMemory
impl Sync for CgroupMemory
impl Unpin for CgroupMemory
impl UnsafeUnpin for CgroupMemory
impl UnwindSafe for CgroupMemory
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