pub struct LinuxCapabilitiesBuilder { /* private fields */ }
Expand description
Builder for LinuxCapabilities
.
Implementations§
Source§impl LinuxCapabilitiesBuilder
impl LinuxCapabilitiesBuilder
Sourcepub fn bounding<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn bounding<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
Bounding is the set of capabilities checked by the kernel.
Sourcepub fn effective<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn effective<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
Effective is the set of capabilities checked by the kernel.
Sourcepub fn inheritable<VALUE: Into<Vec<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn inheritable<VALUE: Into<Vec<String>>>( &mut self, value: VALUE, ) -> &mut Self
Inheritable is the capabilities preserved across execve.
Sourcepub fn permitted<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn permitted<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
Permitted is the limiting superset for effective capabilities.
Trait Implementations§
Source§impl Clone for LinuxCapabilitiesBuilder
impl Clone for LinuxCapabilitiesBuilder
Source§fn clone(&self) -> LinuxCapabilitiesBuilder
fn clone(&self) -> LinuxCapabilitiesBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for LinuxCapabilitiesBuilder
impl Default for LinuxCapabilitiesBuilder
Source§fn default() -> LinuxCapabilitiesBuilder
fn default() -> LinuxCapabilitiesBuilder
Returns the “default value” for a type. Read more
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