[−][src]Enum caps::Capability
Linux capabilities.
All capabilities supported by Linux, including standard
POSIX and custom ones. See capabilities(7).
Variants
CAP_CHOWNCAP_CHOWN (from POSIX)
CAP_DAC_OVERRIDECAP_DAC_OVERRIDE (from POSIX)
CAP_DAC_READ_SEARCHCAP_DAC_READ_SEARCH (from POSIX)
CAP_FOWNERCAP_FOWNER (from POSIX)
CAP_FSETIDCAP_FSETID (from POSIX)
CAP_KILLCAP_KILL (from POSIX)
CAP_SETGIDCAP_SETGID (from POSIX)
CAP_SETUIDCAP_SETUID (from POSIX)
CAP_SETPCAPCAP_SETPCAP (from Linux)
CAP_LINUX_IMMUTABLECAP_NET_BIND_SERVICECAP_NET_BROADCASTCAP_NET_ADMINCAP_NET_RAWCAP_IPC_LOCKCAP_IPC_OWNERCAP_SYS_MODULECAP_SYS_MODULE (from Linux)
CAP_SYS_RAWIOCAP_SYS_RAWIO (from Linux)
CAP_SYS_CHROOTCAP_SYS_CHROOT (from Linux)
CAP_SYS_PTRACECAP_SYS_PTRACE (from Linux)
CAP_SYS_PACCTCAP_SYS_PACCT (from Linux)
CAP_SYS_ADMINCAP_SYS_ADMIN (from Linux)
CAP_SYS_BOOTCAP_SYS_BOOT (from Linux)
CAP_SYS_NICECAP_SYS_NICE (from Linux)
CAP_SYS_RESOURCECAP_SYS_RESOURCE (from Linux)
CAP_SYS_TIMECAP_SYS_TIME (from Linux)
CAP_SYS_TTY_CONFIGCAP_SYS_TTY_CONFIG (from Linux)
CAP_MKNODCAP_SYS_MKNOD (from Linux 2.4)
CAP_LEASECAP_LEASE (from Linux 2.4)
CAP_AUDIT_WRITECAP_AUDIT_CONTROLCAP_AUDIT_CONTROL (from Linux 2.6.11)
CAP_SETFCAPCAP_MAC_OVERRIDECAP_MAC_ADMINCAP_SYSLOGCAP_SYSLOG (from Linux 2.6.37)
CAP_WAKE_ALARMCAP_BLOCK_SUSPENDCAP_AUDIT_READCAP_AUDIT_READ (from Linux 3.16).
Methods
impl Capability[src]
pub fn bitmask(&self) -> u64[src]
Returns the bitmask corresponding to this capability value.
pub fn index(&self) -> u8[src]
Returns the index of this capability, i.e. its kernel-defined value.
Trait Implementations
impl Clone for Capability[src]
fn clone(&self) -> Capability[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl PartialEq<Capability> for Capability[src]
fn eq(&self, other: &Capability) -> bool[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.
impl Copy for Capability[src]
impl Eq for Capability[src]
impl Display for Capability[src]
impl Debug for Capability[src]
impl Hash for Capability[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl FromStr for Capability[src]
Auto Trait Implementations
impl Sync for Capability
impl Send for Capability
impl Unpin for Capability
impl RefUnwindSafe for Capability
impl UnwindSafe for Capability
Blanket Implementations
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,