Struct oci_spec::runtime::LinuxCapabilitiesBuilder
source · pub struct LinuxCapabilitiesBuilder { /* private fields */ }
Expand description
Builder for LinuxCapabilities
.
Implementations§
source§impl LinuxCapabilitiesBuilder
impl LinuxCapabilitiesBuilder
sourcepub fn bounding<VALUE: Into<Capabilities>>(self, value: VALUE) -> Self
pub fn bounding<VALUE: Into<Capabilities>>(self, value: VALUE) -> Self
Bounding is the set of capabilities checked by the kernel.
sourcepub fn effective<VALUE: Into<Capabilities>>(self, value: VALUE) -> Self
pub fn effective<VALUE: Into<Capabilities>>(self, value: VALUE) -> Self
Effective is the set of capabilities checked by the kernel.
sourcepub fn inheritable<VALUE: Into<Capabilities>>(self, value: VALUE) -> Self
pub fn inheritable<VALUE: Into<Capabilities>>(self, value: VALUE) -> Self
Inheritable is the capabilities preserved across execve.
sourcepub fn permitted<VALUE: Into<Capabilities>>(self, value: VALUE) -> Self
pub fn permitted<VALUE: Into<Capabilities>>(self, value: VALUE) -> Self
Permitted is the limiting superset for effective capabilities.
sourcepub fn ambient<VALUE: Into<Capabilities>>(self, value: VALUE) -> Self
pub fn ambient<VALUE: Into<Capabilities>>(self, value: VALUE) -> Self
Ambient is the ambient set of capabilities that are kept.
sourcepub fn build(self) -> Result<LinuxCapabilities, OciSpecError>
pub fn build(self) -> Result<LinuxCapabilities, OciSpecError>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for LinuxCapabilitiesBuilder
impl Send for LinuxCapabilitiesBuilder
impl Sync for LinuxCapabilitiesBuilder
impl Unpin for LinuxCapabilitiesBuilder
impl UnwindSafe for LinuxCapabilitiesBuilder
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