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
)