pub struct CgroupHandle {
pub path: String,
}Expand description
Opaque handle to a created cgroup scope.
Returned by CgroupManager::create_scope and passed to process spawn
for placement. Implementers store whatever is needed to reference the scope
(typically the cgroup path).
Fields§
§path: StringFull cgroup path (e.g., /sys/fs/cgroup/pact.slice/gpu.slice/nvidia-persistenced).
Trait Implementations§
Source§impl Clone for CgroupHandle
impl Clone for CgroupHandle
Source§fn clone(&self) -> CgroupHandle
fn clone(&self) -> CgroupHandle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CgroupHandle
impl RefUnwindSafe for CgroupHandle
impl Send for CgroupHandle
impl Sync for CgroupHandle
impl Unpin for CgroupHandle
impl UnsafeUnpin for CgroupHandle
impl UnwindSafe for CgroupHandle
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