Enum caps::Capability [−][src]
#[repr(u8)]pub enum Capability { CAP_CHOWN, CAP_DAC_OVERRIDE, CAP_DAC_READ_SEARCH, CAP_FOWNER, CAP_FSETID, CAP_KILL, CAP_SETGID, CAP_SETUID, CAP_SETPCAP, CAP_LINUX_IMMUTABLE, CAP_NET_BIND_SERVICE, CAP_NET_BROADCAST, CAP_NET_ADMIN, CAP_NET_RAW, CAP_IPC_LOCK, CAP_IPC_OWNER, CAP_SYS_MODULE, CAP_SYS_RAWIO, CAP_SYS_CHROOT, CAP_SYS_PTRACE, CAP_SYS_PACCT, CAP_SYS_ADMIN, CAP_SYS_BOOT, CAP_SYS_NICE, CAP_SYS_RESOURCE, CAP_SYS_TIME, CAP_SYS_TTY_CONFIG, CAP_MKNOD, CAP_LEASE, CAP_AUDIT_WRITE, CAP_AUDIT_CONTROL, CAP_SETFCAP, CAP_MAC_OVERRIDE, CAP_MAC_ADMIN, CAP_SYSLOG, CAP_WAKE_ALARM, CAP_BLOCK_SUSPEND, CAP_AUDIT_READ, }
Linux capabilities.
All capabilities supported by Linux, including standard
POSIX and custom ones. See capabilities(7)
.
Variants
CAP_CHOWN
CAP_CHOWN (from POSIX)
CAP_DAC_OVERRIDE
CAP_DAC_OVERRIDE (from POSIX)
CAP_DAC_READ_SEARCH
CAP_DAC_READ_SEARCH (from POSIX)
CAP_FOWNER
CAP_FOWNER (from POSIX)
CAP_FSETID
CAP_FSETID (from POSIX)
CAP_KILL
CAP_KILL (from POSIX)
CAP_SETGID
CAP_SETGID (from POSIX)
CAP_SETUID
CAP_SETUID (from POSIX)
CAP_SETPCAP
CAP_SETPCAP (from Linux)
CAP_LINUX_IMMUTABLE
CAP_NET_BIND_SERVICE
CAP_NET_BROADCAST
CAP_NET_ADMIN
CAP_NET_RAW
CAP_IPC_LOCK
CAP_IPC_OWNER
CAP_SYS_MODULE
CAP_SYS_MODULE (from Linux)
CAP_SYS_RAWIO
CAP_SYS_RAWIO (from Linux)
CAP_SYS_CHROOT
CAP_SYS_CHROOT (from Linux)
CAP_SYS_PTRACE
CAP_SYS_PTRACE (from Linux)
CAP_SYS_PACCT
CAP_SYS_PACCT (from Linux)
CAP_SYS_ADMIN
CAP_SYS_ADMIN (from Linux)
CAP_SYS_BOOT
CAP_SYS_BOOT (from Linux)
CAP_SYS_NICE
CAP_SYS_NICE (from Linux)
CAP_SYS_RESOURCE
CAP_SYS_RESOURCE (from Linux)
CAP_SYS_TIME
CAP_SYS_TIME (from Linux)
CAP_SYS_TTY_CONFIG
CAP_SYS_TTY_CONFIG (from Linux)
CAP_MKNOD
CAP_SYS_MKNOD (from Linux 2.4)
CAP_LEASE
CAP_LEASE (from Linux 2.4)
CAP_AUDIT_WRITE
CAP_AUDIT_CONTROL
CAP_AUDIT_CONTROL (from Linux 2.6.11)
CAP_SETFCAP
CAP_MAC_OVERRIDE
CAP_MAC_ADMIN
CAP_SYSLOG
CAP_SYSLOG (from Linux 2.6.37)
CAP_WAKE_ALARM
CAP_BLOCK_SUSPEND
CAP_AUDIT_READ
CAP_AUDIT_READ (from Linux 3.16).
Methods
impl Capability
[src]
impl Capability
pub fn bitmask(&self) -> u64
[src]
pub fn bitmask(&self) -> u64
Returns the bitmask corresponding to this capability value.
pub fn index(&self) -> u8
[src]
pub fn index(&self) -> u8
Returns the index of this capability, i.e. its kernel-defined value.
Trait Implementations
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 Hash for Capability
[src]
impl Hash for Capability
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
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 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 Copy for Capability
[src]
impl Copy for Capability
impl Display for Capability
[src]
impl Display 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 FromStr for Capability
[src]
impl FromStr for Capability
Auto Trait Implementations
impl Send for Capability
impl Send for Capability
impl Sync for Capability
impl Sync for Capability