pub struct CGroupController {
pub name: String,
pub hierarchy: u32,
pub num_cgroups: u32,
pub enabled: bool,
}
Expand description
Container group controller information.
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
Auto Trait Implementations§
impl Freeze for CGroupController
impl RefUnwindSafe for CGroupController
impl Send for CGroupController
impl Sync for CGroupController
impl Unpin for CGroupController
impl UnwindSafe for CGroupController
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)