Struct cgroups_rs::cpuacct::CpuAcctController
source · pub struct CpuAcctController { /* private fields */ }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§
Trait Implementations§
source§impl Clone for CpuAcctController
impl Clone for CpuAcctController
source§fn clone(&self) -> CpuAcctController
fn clone(&self) -> CpuAcctController
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for CpuAcctController
impl Debug for CpuAcctController
source§impl<'a> From<&'a Subsystem> for &'a CpuAcctController
impl<'a> From<&'a Subsystem> for &'a CpuAcctController
source§fn from(sub: &'a Subsystem) -> &'a CpuAcctController
fn from(sub: &'a Subsystem) -> &'a CpuAcctController
Converts to this type from the input type.
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§
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
source§impl<T> Controller for Twhere
T: ControllerInternal,
impl<T> Controller for Twhere T: ControllerInternal,
source§fn apply(&self, res: &Resources) -> Result<(), Error>
fn apply(&self, res: &Resources) -> Result<(), Error>
Apply a set of resources to the Controller, invoking its internal functions to pass the kernel the information.
source§fn add_task_by_tgid(&self, pid: &CgroupPid) -> Result<(), Error>
fn add_task_by_tgid(&self, pid: &CgroupPid) -> Result<(), Error>
Attach a task to this controller by thread group id.