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