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”.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cgroup
impl<'de> Deserialize<'de> for Cgroup
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Cgroup
impl StructuralPartialEq for Cgroup
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)