pub struct CgroupBuilder { /* private fields */ }
Expand description
Builder for Cgroup
.
Implementations§
Source§impl CgroupBuilder
impl CgroupBuilder
Sourcepub fn v1<VALUE: Into<bool>>(self, value: VALUE) -> Self
pub fn v1<VALUE: Into<bool>>(self, value: VALUE) -> Self
“v1” field represents whether Cgroup v1 support is compiled in. Unrelated to whether the host uses cgroup v1 or not. “None” means “unknown”, not “false”.
Sourcepub fn v2<VALUE: Into<bool>>(self, value: VALUE) -> Self
pub fn v2<VALUE: Into<bool>>(self, value: VALUE) -> Self
“v2” field represents whether Cgroup v2 support is compiled in. Unrelated to whether the host uses cgroup v2 or not. “None” means “unknown”, not “false”.
Sourcepub fn systemd<VALUE: Into<bool>>(self, value: VALUE) -> Self
pub fn systemd<VALUE: Into<bool>>(self, value: VALUE) -> Self
“systemd” field represents whether systemd-cgroup support is compiled in. Unrelated to whether the host uses systemd or not. “None” means “unknown”, not “false”.
Sourcepub fn systemd_user<VALUE: Into<bool>>(self, value: VALUE) -> Self
pub fn systemd_user<VALUE: Into<bool>>(self, value: VALUE) -> Self
“systemdUser” field represents whether user-scoped systemd-cgroup support is compiled in. Unrelated to whether the host uses systemd or not. “None” means “unknown”, not “false”.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CgroupBuilder
impl RefUnwindSafe for CgroupBuilder
impl Send for CgroupBuilder
impl Sync for CgroupBuilder
impl Unpin for CgroupBuilder
impl UnwindSafe for CgroupBuilder
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