struct Cgroup {
version: CgroupVersion,
base: PathBuf,
}
Fields§
§version: CgroupVersion
§base: PathBuf
Implementations§
source§impl Cgroup
impl Cgroup
fn new(version: CgroupVersion, dir: PathBuf) -> Cgroup
fn translate(mntinfo: MountInfo, subsys: Subsys) -> Option<Cgroup>
fn cpu_quota(&self) -> Option<usize>
fn quota_us(&self) -> Option<usize>
fn period_us(&self) -> Option<usize>
fn max(&self) -> Option<(usize, usize)>
fn param(&self, param: &str) -> Option<usize>
fn raw_param(&self, param: &str) -> Option<String>
Auto Trait Implementations§
impl Freeze for Cgroup
impl RefUnwindSafe for Cgroup
impl Send for Cgroup
impl Sync for Cgroup
impl Unpin for Cgroup
impl UnwindSafe for Cgroup
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