[][src]Struct illumos_priv::PrivSet

pub struct PrivSet { /* fields omitted */ }

An illumos privilege set that allows one to add/remove or complete replace a set of privileges for a process. When PrivSet is dropped, its backing memory is freed.

Methods

impl PrivSet[src]

pub fn new_empty() -> Result<Self>[src]

Allocates a new empty PrivSet

pub fn new_basic() -> Result<Self>[src]

Allocates a new PrivSet with "basic" privileges. "basic" privileges are "privileges" unprivileged processes are accustomed to having.

pub fn basic(&self)[src]

Adds the "basic" set to the PrivSet.

pub fn empty(&self)[src]

Empties the PrivSet so that it contains no "privileges"

pub fn addset(&self, p: Privilege) -> Result<()>[src]

Adds the named privilege to the PrivSet

pub fn delset(&self, p: Privilege) -> Result<()>[src]

Removes the named privilege from the PrivSet

pub fn is_empty(&self) -> bool[src]

Determines whether the PrivSet is empty.

pub fn is_member(&self, p: Privilege) -> bool[src]

Determines whether the named privilege is a member of the PrivSet.

pub fn is_equal(&self, dst: &PrivSet) -> bool[src]

Determines whether the PrivSet is equal to the dst PrivSet.

Trait Implementations

impl PartialEq<PrivSet> for PrivSet[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl Drop for PrivSet[src]

Auto Trait Implementations

impl !Send for PrivSet

impl !Sync for PrivSet

Blanket Implementations

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

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

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.

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

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

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