Struct oci_spec::runtime::LinuxFeature
source · 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
)