[][src]Trait cgroups_rs::Hierarchy

pub trait Hierarchy: Debug + Send + Sync {
    pub fn subsystems(&self) -> Vec<Subsystem>;
pub fn root(&self) -> PathBuf;
pub fn root_control_group(&self) -> Cgroup;
pub fn v2(&self) -> bool; }

Control group hierarchy (right now, only V1 is supported, but in the future Unified will be implemented as well).

Required methods

pub fn subsystems(&self) -> Vec<Subsystem>[src]

Returns what subsystems are supported by the hierarchy.

pub fn root(&self) -> PathBuf[src]

Returns the root directory of the hierarchy.

pub fn root_control_group(&self) -> Cgroup[src]

Return a handle to the root control group in the hierarchy.

pub fn v2(&self) -> bool[src]

Loading content...

Implementors

impl Hierarchy for V1[src]

impl Hierarchy for V2[src]

Loading content...