[−][src]Struct capctl::caps::FullCapState
Represents the "full" capability state of a thread (i.e. the contents of all 5 capability sets and some additional information).
Fields (Non-exhaustive)
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.permitted: CapSet
effective: CapSet
inheritable: CapSet
ambient: CapSet
bounding: CapSet
no_new_privs: bool
Implementations
impl FullCapState
[src]
pub fn empty() -> Self
[src]
Construct an empty FullCapState
object.
pub fn get_current() -> Result<Self>
[src]
Get the full capability state of the current thread.
This is equivalent to FullCapState::get_for_pid(0)
. However, this method uses the kernel
APIs to retrieve information instead of examining files in /proc
.
pub fn get_for_pid(pid: pid_t) -> Result<Self>
[src]
Get the full capability state of the process (or thread) with the given PID (or TID) by
examining special files in /proc
.
If pid
is 0, this method gets the capability state of the current thread.
Trait Implementations
impl Clone for FullCapState
[src]
fn clone(&self) -> FullCapState
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for FullCapState
[src]
impl Debug for FullCapState
[src]
impl Eq for FullCapState
[src]
impl Hash for FullCapState
[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<FullCapState> for FullCapState
[src]
fn eq(&self, other: &FullCapState) -> bool
[src]
fn ne(&self, other: &FullCapState) -> bool
[src]
impl StructuralEq for FullCapState
[src]
impl StructuralPartialEq for FullCapState
[src]
Auto Trait Implementations
impl RefUnwindSafe for FullCapState
impl Send for FullCapState
impl Sync for FullCapState
impl Unpin for FullCapState
impl UnwindSafe for FullCapState
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, 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>,