Struct oci_spec::runtime::LinuxFeatureBuilder
source · pub struct LinuxFeatureBuilder { /* private fields */ }
Expand description
Builder for LinuxFeature
.
Implementations§
source§impl LinuxFeatureBuilder
impl LinuxFeatureBuilder
sourcepub fn namespaces<VALUE: Into<Vec<LinuxNamespaceType>>>(
self,
value: VALUE,
) -> Self
pub fn namespaces<VALUE: Into<Vec<LinuxNamespaceType>>>( self, value: VALUE, ) -> Self
The list of the recognized namespaces, e.g., “mount”. “None” means “unknown”, not “no support for any namespace”.
sourcepub fn capabilities<VALUE: Into<Vec<String>>>(self, value: VALUE) -> Self
pub fn capabilities<VALUE: Into<Vec<String>>>(self, value: VALUE) -> Self
The list of the recognized capabilities , e.g., “CAP_SYS_ADMIN”. “None” means “unknown”, not “no support for any capability”.
sourcepub fn cgroup<VALUE: Into<Cgroup>>(self, value: VALUE) -> Self
pub fn cgroup<VALUE: Into<Cgroup>>(self, value: VALUE) -> Self
The available features related to cgroup.
sourcepub fn seccomp<VALUE: Into<Seccomp>>(self, value: VALUE) -> Self
pub fn seccomp<VALUE: Into<Seccomp>>(self, value: VALUE) -> Self
The available features related to seccomp.
sourcepub fn apparmor<VALUE: Into<Apparmor>>(self, value: VALUE) -> Self
pub fn apparmor<VALUE: Into<Apparmor>>(self, value: VALUE) -> Self
The available features related to apparmor.
sourcepub fn selinux<VALUE: Into<Selinux>>(self, value: VALUE) -> Self
pub fn selinux<VALUE: Into<Selinux>>(self, value: VALUE) -> Self
The available features related to selinux.
sourcepub fn intel_rdt<VALUE: Into<IntelRdt>>(self, value: VALUE) -> Self
pub fn intel_rdt<VALUE: Into<IntelRdt>>(self, value: VALUE) -> Self
The available features related to Intel RDT.
sourcepub fn mount_extensions<VALUE: Into<MountExtensions>>(
self,
value: VALUE,
) -> Self
pub fn mount_extensions<VALUE: Into<MountExtensions>>( self, value: VALUE, ) -> Self
The available features related to mount extensions.
sourcepub fn build(self) -> Result<LinuxFeature, OciSpecError>
pub fn build(self) -> Result<LinuxFeature, OciSpecError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinuxFeatureBuilder
impl RefUnwindSafe for LinuxFeatureBuilder
impl Send for LinuxFeatureBuilder
impl Sync for LinuxFeatureBuilder
impl Unpin for LinuxFeatureBuilder
impl UnwindSafe for LinuxFeatureBuilder
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
Mutably borrows from an owned value. Read more