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 Freeze for LinuxCapabilitiesBuilder
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