Struct cgroups_fs::CgroupName
source · pub struct CgroupName { /* private fields */ }
Expand description
A common structure holding a cgroups name (path).
Implementations§
source§impl CgroupName
impl CgroupName
sourcepub fn new<P>(name: P) -> Selfwhere
P: AsRef<Path>,
pub fn new<P>(name: P) -> Selfwhere
P: AsRef<Path>,
Defines a new cgroups name.
Notes:
- It does not create any cgroups. It is just an API abstraction layer. Learn more about
Cgroup::new
,Cgroup::create
,Cgroup::remove
, andAutomanagedCgroup::init
methods.