pub struct CgroupManager { /* private fields */ }Expand description
Manages Cgroup V2 operations for Assay.
Implementations§
Source§impl CgroupManager
impl CgroupManager
Sourcepub fn new() -> Result<Self>
pub fn new() -> Result<Self>
Checks if Cgroup V2 is available and resolves the correct nesting root. SOTA Hardening: Detects current cgroup scope to support systemd slices.
Sourcepub fn create_session(&self) -> Result<SessionCgroup>
pub fn create_session(&self) -> Result<SessionCgroup>
Creates a new ephemeral cgroup.
Auto Trait Implementations§
impl Freeze for CgroupManager
impl RefUnwindSafe for CgroupManager
impl Send for CgroupManager
impl Sync for CgroupManager
impl Unpin for CgroupManager
impl UnsafeUnpin for CgroupManager
impl UnwindSafe for CgroupManager
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