Struct users::Group [] [src]

pub struct Group {
    pub name_arc: Arc<String>,
    // some fields omitted
}

Information about a particular group.

Fields

name_arc: Arc<String>

This group’s name, as an owned String possibly shared with a cache. Prefer using the name() accessor to using this field, if possible.

Methods

impl Group
[src]

fn new(gid: gid_t, name: &str) -> Self

Create a new Group with the given group ID and name, with the rest of the fields filled in with dummy values.

This method does not actually create a new group on the system—it should only be used for comparing groups in tests.

fn gid(&self) -> gid_t

Returns this group’s ID.

fn name(&self) -> &str

Returns this group's name.

Trait Implementations

impl GroupExt for Group
[src]

fn members(&self) -> &[String]

Returns a slice of the list of users that are in this group as their non-primary group. Read more

impl Clone for Group
[src]

fn clone(&self) -> Group

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for Group
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.