pub struct Cgroup<'a>(pub &'a File);
Expand description
Which cgroup to monitor.
For instance, if the cgroup to monitor is called test, then a file descriptor opened on
/dev/cgroup/test
(assuming cgroupfs is mounted on /dev/cgroup
) should be passed.
cgroup monitoring is available only for system-wide events and may therefore require extra permissions.
Tuple Fields§
§0: &'a File
Trait Implementations§
impl<'a> Copy for Cgroup<'a>
Auto Trait Implementations§
impl<'a> Freeze for Cgroup<'a>
impl<'a> RefUnwindSafe for Cgroup<'a>
impl<'a> Send for Cgroup<'a>
impl<'a> Sync for Cgroup<'a>
impl<'a> Unpin for Cgroup<'a>
impl<'a> UnwindSafe for Cgroup<'a>
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