[−][src]Enum capctl::caps::Cap
An enum representing all of the possible Linux capabilities.
Variants (Non-exhaustive)
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations
impl Cap
[src]
pub fn iter() -> CapIterⓘ
[src]
Return an iterator over all of the capabilities enumerated by Cap
.
pub fn is_supported(self) -> bool
[src]
Checks whether the specified capability is supported on the current kernel.
pub fn probe_supported() -> CapSet
[src]
Determines the set of capabilities supported by the running kernel.
This uses a binary search combined with Cap::is_supported()
to determine the supported
capabilities. It is more efficient than a simple Cap::iter()
/Cap::is_supported()
loop.
Trait Implementations
impl Clone for Cap
[src]
impl Copy for Cap
[src]
impl Debug for Cap
[src]
impl Display for Cap
[src]
impl Eq for Cap
[src]
impl Extend<Cap> for CapSet
[src]
fn extend<I: IntoIterator<Item = Cap>>(&mut self, it: I)
[src]
fn extend_one(&mut self, item: A)
[src]
fn extend_reserve(&mut self, additional: usize)
[src]
impl FromIterator<Cap> for CapSet
[src]
fn from_iter<I: IntoIterator<Item = Cap>>(it: I) -> Self
[src]
impl FromStr for Cap
[src]
type Err = ParseCapError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Hash for Cap
[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,
impl PartialEq<Cap> for Cap
[src]
impl StructuralEq for Cap
[src]
impl StructuralPartialEq for Cap
[src]
Auto Trait Implementations
impl RefUnwindSafe for Cap
impl Send for Cap
impl Sync for Cap
impl Unpin for Cap
impl UnwindSafe for Cap
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>,