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§
source§impl Clone for CGroupController
impl Clone for CGroupController
source§fn clone(&self) -> CGroupController
fn clone(&self) -> CGroupController
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 CGroupController
impl Debug for CGroupController
source§impl<'de> Deserialize<'de> for CGroupController
impl<'de> Deserialize<'de> for CGroupController
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more