pub struct Cgroup { /* private fields */ }
Expand description
Cgroup represents the “cgroup” field.
Implementations§
Source§impl Cgroup
impl Cgroup
Sourcepub fn v1_mut(&mut self) -> &mut Option<bool>
pub fn v1_mut(&mut self) -> &mut Option<bool>
“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_mut(&mut self) -> &mut Option<bool>
pub fn v2_mut(&mut self) -> &mut Option<bool>
“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_mut(&mut self) -> &mut Option<bool>
pub fn systemd_mut(&mut self) -> &mut Option<bool>
“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_mut(&mut self) -> &mut Option<bool>
pub fn systemd_user_mut(&mut self) -> &mut Option<bool>
“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”.
Source§impl Cgroup
impl Cgroup
Sourcepub fn v1(&self) -> &Option<bool>
pub fn v1(&self) -> &Option<bool>
“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(&self) -> &Option<bool>
pub fn v2(&self) -> &Option<bool>
“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(&self) -> &Option<bool>
pub fn systemd(&self) -> &Option<bool>
“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(&self) -> &Option<bool>
pub fn systemd_user(&self) -> &Option<bool>
“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”.
Source§impl Cgroup
impl Cgroup
Sourcepub fn set_v1(&mut self, val: Option<bool>) -> &mut Self
pub fn set_v1(&mut self, val: Option<bool>) -> &mut 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 set_v2(&mut self, val: Option<bool>) -> &mut Self
pub fn set_v2(&mut self, val: Option<bool>) -> &mut 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 set_systemd(&mut self, val: Option<bool>) -> &mut Self
pub fn set_systemd(&mut self, val: Option<bool>) -> &mut 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 set_systemd_user(&mut self, val: Option<bool>) -> &mut Self
pub fn set_systemd_user(&mut self, val: Option<bool>) -> &mut 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”.