Trait users::Groups [] [src]

pub trait Groups {
    fn get_group_by_gid(&self, gid: gid_t) -> Option<Arc<Group>>;
fn get_group_by_name(&self, group_name: &str) -> Option<Arc<Group>>;
fn get_current_gid(&self) -> gid_t;
fn get_current_groupname(&self) -> Option<Arc<String>>;
fn get_effective_gid(&self) -> gid_t;
fn get_effective_groupname(&self) -> Option<Arc<String>>; }

Trait for producers of groups.

Required Methods

Returns a Group object if one exists for the given group ID; otherwise, returns None.

Returns a Group object if one exists for the given groupname; otherwise, returns None.

Returns the group ID for the user running the process.

Returns the group name of the user running the process.

Returns the effective group id.

Returns the effective group name.

Implementors