Enum dpdk_unix::android_linux::capabilities::Capability [−][src]
#[repr(u8)]pub enum Capability { AuditControl, AuditRead, AuditWrite, BlockSuspend, Chown, DiscretionaryAccessControlBypass, DiscretionaryAccessControlFileReadBypass, FileOwnerBypass, FileSetId, LockMemory, IpcOwner, Kill, Lease, Immutable, MandatoryAccessControlBypass, MandatoryAccessControlOverride, MakeNodes, SystemAdministration, NetworkAdministration, BindPortsBelow1024, NetRaw, SetUid, SetGid, SetFileCapabilities, SetProcessCapabilities, RebootAndKexecLoad, Chroot, KernelModule, Nice, ProcessAccounting, PTrace, RawIO, Resource, Time, TtyConfig, Syslog, WakeAlarm, }
Linux Security Capabilities.
Variants
AuditControl
AuditRead
AuditWrite
BlockSuspend
Chown
DiscretionaryAccessControlBypass
DiscretionaryAccessControlFileReadBypass
FileOwnerBypass
FileSetId
LockMemory
IpcOwner
Kill
Lease
Immutable
MandatoryAccessControlBypass
MandatoryAccessControlOverride
MakeNodes
SystemAdministration
NetworkAdministration
BindPortsBelow1024
NetRaw
SetUid
SetGid
SetFileCapabilities
SetProcessCapabilities
RebootAndKexecLoad
Chroot
KernelModule
Nice
ProcessAccounting
PTrace
RawIO
Resource
Time
TtyConfig
Syslog
WakeAlarm
Methods
impl Capability
[src]
impl Capability
pub fn clear_all_ambient_capabilities()
[src]
pub fn clear_all_ambient_capabilities()
Clears all ambient capabilities from the current process.
pub fn ensure_capabilities_dropped(
drop_these_capabilities_if_current_process_has_them: &[Capability]
)
[src]
pub fn ensure_capabilities_dropped(
drop_these_capabilities_if_current_process_has_them: &[Capability]
)
Ensures the given capabilities are dropped from the current process.
Tries to drop each capability separately, ie not all or nothing.
pub fn current_process_has(&self) -> Option<bool>
[src]
pub fn current_process_has(&self) -> Option<bool>
Does the current process have this capability?
Returns None if this capability isn't recognised by the Linux kernel.
pub fn drop_from_current_process(&self) -> Result<(), ()>
[src]
pub fn drop_from_current_process(&self) -> Result<(), ()>
Returns Err if a lack-of-permssions error occurred.
Trait Implementations
impl Debug for Capability
[src]
impl Debug for Capability
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for Capability
[src]
impl Copy for Capability
impl Clone for Capability
[src]
impl Clone for Capability
fn clone(&self) -> Capability
[src]
fn clone(&self) -> Capability
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for Capability
[src]
impl PartialEq for Capability
fn eq(&self, other: &Capability) -> bool
[src]
fn eq(&self, other: &Capability) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for Capability
[src]
impl Eq for Capability
impl PartialOrd for Capability
[src]
impl PartialOrd for Capability
fn partial_cmp(&self, other: &Capability) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Capability) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
fn ge(&self, other: &Rhs) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for Capability
[src]
impl Ord for Capability
fn cmp(&self, other: &Capability) -> Ordering
[src]
fn cmp(&self, other: &Capability) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Hash for Capability
[src]
impl Hash for Capability
Auto Trait Implementations
impl Send for Capability
impl Send for Capability
impl Sync for Capability
impl Sync for Capability