Struct procfs::CGroupController
source · [−]pub struct CGroupController {
pub name: String,
pub hierarchy: u32,
pub num_cgroups: u32,
pub enabled: bool,
}
Expand description
Container group controller information.
See also the cgroups() method.
Fields
name: String
The name of the controller.
hierarchy: u32
The unique ID of the cgroup hierarchy on which this controller is mounted.
If multiple cgroups v1 controllers are bound to the same hierarchy, then each will show the same hierarchy ID in this field. The value in this field will be 0 if:
- the controller is not mounted on a cgroups v1 hierarchy;
- the controller is bound to the cgroups v2 single unified hierarchy; or
- the controller is disabled (see below).
num_cgroups: u32
The number of control groups in this hierarchy using this controller.
enabled: bool
This field contains the value true
if this controller is enabled, or false
if it has been disabled
Trait Implementations
sourceimpl Clone for CGroupController
impl Clone for CGroupController
sourcefn clone(&self) -> CGroupController
fn clone(&self) -> CGroupController
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for CGroupController
impl Send for CGroupController
impl Sync for CGroupController
impl Unpin for CGroupController
impl UnwindSafe for CGroupController
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more