pub struct Cgroup { /* private fields */ }Expand description
This process’s own cgroup v2 cgroup.
Implementations§
Source§impl Cgroup
impl Cgroup
Sourcepub fn memory_current(&self) -> Option<u64>
pub fn memory_current(&self) -> Option<u64>
Returns memory.current, which is cheaper to read than
Self::memory.
Sourcepub fn memory(&self) -> Option<CgroupMemory>
pub fn memory(&self) -> Option<CgroupMemory>
Returns the cgroup’s memory use and limit.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Cgroup
impl Freeze for Cgroup
impl Move for Cgroup
impl RefUnwindSafe for Cgroup
impl Send for Cgroup
impl Sync for Cgroup
impl Unpin for Cgroup
impl UnsafeUnpin for Cgroup
impl UnwindSafe for Cgroup
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