[][src]Struct redox_users::AllGroups

pub struct AllGroups { /* fields omitted */ }

AllGroups provides (borrowed) access to all groups on the system. Note that this struct implements All, for a bunch of convenience functions.

General notes that also apply to this struct may be found with AllUsers.

Implementations

impl AllGroups[src]

pub fn new(config: Config) -> Result<AllGroups>[src]

Create a new AllGroups.

pub fn add_group(
    &mut self,
    name: &str,
    gid: usize,
    users: &[&str]
) -> Result<()>
[src]

Adds a group with the specified attributes to this AllGroups.

This function is classified as a mutating operation, and users must therefore call save in order for the new group to be applied to the system.

pub fn save(&self) -> Result<()>[src]

Syncs the data stored in this AllGroups instance to the filesystem. To apply changes from an AllGroups, you MUST call this function!

Trait Implementations

impl All for AllGroups[src]

Auto Trait Implementations

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, 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.