Trait Hierarchy

Source
pub trait Hierarchy {
    // Required methods
    fn subsystems(&self) -> Vec<Subsystem>;
    fn root(&self) -> PathBuf;
    fn root_control_group(&self) -> Cgroup<'_>;
}
Expand description

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

Required Methods§

Source

fn subsystems(&self) -> Vec<Subsystem>

Returns what subsystems are supported by the hierarchy.

Source

fn root(&self) -> PathBuf

Returns the root directory of the hierarchy.

Source

fn root_control_group(&self) -> Cgroup<'_>

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

Implementors§