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) -> Self
pub fn new<P>(name: P) -> Self
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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CgroupName
impl RefUnwindSafe for CgroupName
impl Send for CgroupName
impl Sync for CgroupName
impl Unpin for CgroupName
impl UnwindSafe for CgroupName
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