pub struct LinuxFeature { /* private fields */ }
Expand description
Linux specific features.
Implementations§
Source§impl LinuxFeature
impl LinuxFeature
Sourcepub fn namespaces_mut(&mut self) -> &mut Option<Vec<LinuxNamespaceType>>
pub fn namespaces_mut(&mut self) -> &mut Option<Vec<LinuxNamespaceType>>
The list of the recognized namespaces, e.g., “mount”. “None” means “unknown”, not “no support for any namespace”.
Sourcepub fn capabilities_mut(&mut self) -> &mut Option<Vec<String>>
pub fn capabilities_mut(&mut self) -> &mut Option<Vec<String>>
The list of the recognized capabilities , e.g., “CAP_SYS_ADMIN”. “None” means “unknown”, not “no support for any capability”.
Sourcepub fn cgroup_mut(&mut self) -> &mut Option<Cgroup>
pub fn cgroup_mut(&mut self) -> &mut Option<Cgroup>
The available features related to cgroup.
Sourcepub fn seccomp_mut(&mut self) -> &mut Option<Seccomp>
pub fn seccomp_mut(&mut self) -> &mut Option<Seccomp>
The available features related to seccomp.
Sourcepub fn apparmor_mut(&mut self) -> &mut Option<Apparmor>
pub fn apparmor_mut(&mut self) -> &mut Option<Apparmor>
The available features related to apparmor.
Sourcepub fn selinux_mut(&mut self) -> &mut Option<Selinux>
pub fn selinux_mut(&mut self) -> &mut Option<Selinux>
The available features related to selinux.
Sourcepub fn intel_rdt_mut(&mut self) -> &mut Option<IntelRdt>
pub fn intel_rdt_mut(&mut self) -> &mut Option<IntelRdt>
The available features related to Intel RDT.
Sourcepub fn mount_extensions_mut(&mut self) -> &mut Option<MountExtensions>
pub fn mount_extensions_mut(&mut self) -> &mut Option<MountExtensions>
The available features related to mount extensions.
Source§impl LinuxFeature
impl LinuxFeature
Sourcepub fn namespaces(&self) -> &Option<Vec<LinuxNamespaceType>>
pub fn namespaces(&self) -> &Option<Vec<LinuxNamespaceType>>
The list of the recognized namespaces, e.g., “mount”. “None” means “unknown”, not “no support for any namespace”.
Sourcepub fn capabilities(&self) -> &Option<Vec<String>>
pub fn capabilities(&self) -> &Option<Vec<String>>
The list of the recognized capabilities , e.g., “CAP_SYS_ADMIN”. “None” means “unknown”, not “no support for any capability”.
Sourcepub fn mount_extensions(&self) -> &Option<MountExtensions>
pub fn mount_extensions(&self) -> &Option<MountExtensions>
The available features related to mount extensions.
Source§impl LinuxFeature
impl LinuxFeature
Sourcepub fn set_namespaces(
&mut self,
val: Option<Vec<LinuxNamespaceType>>,
) -> &mut Self
pub fn set_namespaces( &mut self, val: Option<Vec<LinuxNamespaceType>>, ) -> &mut Self
The list of the recognized namespaces, e.g., “mount”. “None” means “unknown”, not “no support for any namespace”.
Sourcepub fn set_capabilities(&mut self, val: Option<Vec<String>>) -> &mut Self
pub fn set_capabilities(&mut self, val: Option<Vec<String>>) -> &mut Self
The list of the recognized capabilities , e.g., “CAP_SYS_ADMIN”. “None” means “unknown”, not “no support for any capability”.
Sourcepub fn set_cgroup(&mut self, val: Option<Cgroup>) -> &mut Self
pub fn set_cgroup(&mut self, val: Option<Cgroup>) -> &mut Self
The available features related to cgroup.
Sourcepub fn set_seccomp(&mut self, val: Option<Seccomp>) -> &mut Self
pub fn set_seccomp(&mut self, val: Option<Seccomp>) -> &mut Self
The available features related to seccomp.
Sourcepub fn set_apparmor(&mut self, val: Option<Apparmor>) -> &mut Self
pub fn set_apparmor(&mut self, val: Option<Apparmor>) -> &mut Self
The available features related to apparmor.
Sourcepub fn set_selinux(&mut self, val: Option<Selinux>) -> &mut Self
pub fn set_selinux(&mut self, val: Option<Selinux>) -> &mut Self
The available features related to selinux.
Sourcepub fn set_intel_rdt(&mut self, val: Option<IntelRdt>) -> &mut Self
pub fn set_intel_rdt(&mut self, val: Option<IntelRdt>) -> &mut Self
The available features related to Intel RDT.
Sourcepub fn set_mount_extensions(
&mut self,
val: Option<MountExtensions>,
) -> &mut Self
pub fn set_mount_extensions( &mut self, val: Option<MountExtensions>, ) -> &mut Self
The available features related to mount extensions.
Trait Implementations§
Source§impl Clone for LinuxFeature
impl Clone for LinuxFeature
Source§fn clone(&self) -> LinuxFeature
fn clone(&self) -> LinuxFeature
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for LinuxFeature
impl Debug for LinuxFeature
Source§impl Default for LinuxFeature
impl Default for LinuxFeature
Source§fn default() -> LinuxFeature
fn default() -> LinuxFeature
Source§impl<'de> Deserialize<'de> for LinuxFeature
impl<'de> Deserialize<'de> for LinuxFeature
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>,
Source§impl PartialEq for LinuxFeature
impl PartialEq for LinuxFeature
Source§impl Serialize for LinuxFeature
impl Serialize for LinuxFeature
impl Eq for LinuxFeature
impl StructuralPartialEq for LinuxFeature
Auto Trait Implementations§
impl Freeze for LinuxFeature
impl RefUnwindSafe for LinuxFeature
impl Send for LinuxFeature
impl Sync for LinuxFeature
impl Unpin for LinuxFeature
impl UnwindSafe for LinuxFeature
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
)