pub struct CgroupReader { /* private fields */ }

Implementations

Returns the cgroup name (e.g. the path relative to the cgroup root) Invoking this on the root cgroup will return an empty path

Read memory.current - returning current cgroup memory consumption in bytes

Read memory.high - returning memory.high consumption in bytes Will return -1 if the content is max Will return None if the file is missing

Read memory.swap.current - returning current cgroup memory swap consumption in bytes

Read memory.zswap.current - returning current cgroup memory zswap consumption in bytes

Read cpu.stat - returning assorted cpu consumption statistics

Read io.stat - returning assorted io consumption statistics

Read memory.stat - returning assorted memory consumption statistics

Read $typ

Read $typ

Read $typ

Read all pressure metrics

Return an iterator over child cgroups

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.