pub struct FreezerController { /* private fields */ }
Expand description
A controller that allows controlling the freezer
subsystem of a Cgroup.
In essence, this subsystem allows the user to freeze and thaw (== “un-freeze”) the processes in the control group. This is done transparently so that neither the parent, nor the children of the processes can observe the freeze.
Note that if the control group is currently in the Frozen
or Freezing
state, then no
processes can be added to it.
Implementations§
Trait Implementations§
Source§impl Clone for FreezerController
impl Clone for FreezerController
Source§fn clone(&self) -> FreezerController
fn clone(&self) -> FreezerController
Returns a duplicate 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 FreezerController
impl Debug for FreezerController
Source§impl<'a> From<&'a Subsystem> for &'a FreezerController
impl<'a> From<&'a Subsystem> for &'a FreezerController
Source§fn from(sub: &'a Subsystem) -> &'a FreezerController
fn from(sub: &'a Subsystem) -> &'a FreezerController
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FreezerController
impl RefUnwindSafe for FreezerController
impl Send for FreezerController
impl Sync for FreezerController
impl Unpin for FreezerController
impl UnwindSafe for FreezerController
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.