Struct cgroups_rs::cpuacct::CpuAcctController [−][src]
pub struct CpuAcctController { /* fields omitted */ }
Expand description
A controller that allows controlling the cpuacct
subsystem of a Cgroup.
In essence, this control group provides accounting (hence the name cpuacct
) for CPU usage of
the tasks in the control group.
Implementations
Contructs a new CpuAcctController
with root
serving as the root of the control group.
Gathers the statistics that are available in the control group into a CpuAcct
structure.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for CpuAcctController
impl Send for CpuAcctController
impl Sync for CpuAcctController
impl Unpin for CpuAcctController
impl UnwindSafe for CpuAcctController
Blanket Implementations
Mutably borrows from an owned value. Read more
Apply a set of resources to the Controller, invoking its internal functions to pass the kernel the information.
Attach a task to this controller by thread group id.