pub struct Context { /* private fields */ }
Expand description
Cgroup context.
Implementations§
Source§impl Context
impl Context
pub fn add_process(&self, pid: Pid) -> Result<()>
pub fn remove_process(&self, pid: Pid) -> Result<()>
pub fn cpu_controller(&self) -> Box<dyn CpuController + '_>
pub fn cpuacct_controller(&self) -> Box<dyn CpuAcctController + '_>
pub fn freezer_controller(&self) -> Box<dyn FreezerController + '_>
pub fn memory_controller(&self) -> Box<dyn MemoryController + '_>
pub fn pids_controller(&self) -> Box<dyn PidsController + '_>
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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