Enum caps::Capability [−][src]
Linux capabilities.
All capabilities supported by Linux, including standard
POSIX and custom ones. See capabilities(7)
.
Variants
CAP_CHOWN
(from POSIX)
CAP_DAC_OVERRIDE
(from POSIX)
CAP_DAC_READ_SEARCH
(from POSIX)
CAP_FOWNER
(from POSIX)
CAP_FSETID
(from POSIX)
CAP_KILL
(from POSIX)
CAP_SETGID
(from POSIX)
CAP_SETUID
(from POSIX)
CAP_SETPCAP
(from Linux)
CAP_SYS_MODULE
(from Linux)
CAP_SYS_RAWIO
(from Linux)
CAP_SYS_CHROOT
(from Linux)
CAP_SYS_PTRACE
(from Linux)
CAP_SYS_PACCT
(from Linux)
CAP_SYS_ADMIN
(from Linux)
CAP_SYS_BOOT
(from Linux)
CAP_SYS_NICE
(from Linux)
CAP_SYS_RESOURCE
(from Linux)
CAP_SYS_TIME
(from Linux)
CAP_SYS_TTY_CONFIG
(from Linux)
CAP_SYS_MKNOD
(from Linux, >= 2.4)
CAP_LEASE
(from Linux, >= 2.4)
CAP_AUDIT_CONTROL
(from Linux, >= 2.6.11)
CAP_SYSLOG
(from Linux, >= 2.6.37)
CAP_WAKE_ALARM
(from Linux, >= 3.0)
CAP_AUDIT_READ
(from Linux, >= 3.16).
CAP_PERFMON
(from Linux, >= 5.8).
CAP_BPF
(from Linux, >= 5.8).
CAP_CHECKPOINT_RESTORE
(from Linux, >= 5.9).
Implementations
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]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Capability
[src]
impl Debug for Capability
[src]
impl Display for Capability
[src]
impl Eq for Capability
[src]
impl FromStr for Capability
[src]
type Err = CapsError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Hash for Capability
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Capability> for Capability
[src]
fn eq(&self, other: &Capability) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for Capability
[src]
impl StructuralPartialEq for Capability
[src]
Auto Trait Implementations
impl RefUnwindSafe for Capability
[src]
impl Send for Capability
[src]
impl Sync for Capability
[src]
impl Unpin for Capability
[src]
impl UnwindSafe for Capability
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,