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”.