[][src]Struct capo::Caps

pub struct Caps {
    pub effective: Set,
    pub permitted: Set,
    pub inheritable: Set,
}

Fields

effective: Setpermitted: Setinheritable: Set

Implementations

impl Caps[src]

pub fn empty() -> Self[src]

pub fn get() -> Result<Self, Error>[src]

pub fn set(&self) -> Result<(), Error>[src]

pub fn fetch(pid: c_int) -> Result<Self, Error>[src]

pub fn apply(&self, pid: c_int) -> Result<(), Error>[src]

pub fn shift(&self, [low, high]: &mut [Data; 2])[src]

Trait Implementations

impl Clone for Caps[src]

impl Debug for Caps[src]

impl Eq for Caps[src]

impl From<[Data; 2]> for Caps[src]

impl PartialEq<Caps> for Caps[src]

impl StructuralEq for Caps[src]

impl StructuralPartialEq for Caps[src]

Auto Trait Implementations

impl RefUnwindSafe for Caps

impl Send for Caps

impl Sync for Caps

impl Unpin for Caps

impl UnwindSafe for Caps

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.