[−][src]Struct illumos_priv::PrivSet
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]
fn eq(&self, other: &Self) -> bool
[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
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,