Trait users::Groups [−][src]
Trait for producers of groups.
Required methods
fn get_group_by_gid(&self, gid: gid_t) -> Option<Arc<Group>>
[src]
Returns a Group
if one exists for the given group ID; otherwise, returns None
.
fn get_group_by_name<S: AsRef<OsStr> + ?Sized>(
&self,
group_name: &S
) -> Option<Arc<Group>>
[src]
&self,
group_name: &S
) -> Option<Arc<Group>>
Returns a Group
if one exists for the given groupname; otherwise, returns None
.
fn get_current_gid(&self) -> gid_t
[src]
Returns the group ID for the user running the process.
fn get_current_groupname(&self) -> Option<Arc<OsString>>
[src]
Returns the group name of the user running the process.
fn get_effective_gid(&self) -> gid_t
[src]
Returns the effective group id.
fn get_effective_groupname(&self) -> Option<Arc<OsString>>
[src]
Returns the effective group name.
Implementors
impl Groups for UsersCache
[src]
fn get_group_by_gid(&self, gid: gid_t) -> Option<Arc<Group>>
[src]
fn get_group_by_name<S: AsRef<OsStr> + ?Sized>(
&self,
group_name: &S
) -> Option<Arc<Group>>
[src]
&self,
group_name: &S
) -> Option<Arc<Group>>
fn get_current_gid(&self) -> gid_t
[src]
fn get_current_groupname(&self) -> Option<Arc<OsString>>
[src]
fn get_effective_gid(&self) -> gid_t
[src]
fn get_effective_groupname(&self) -> Option<Arc<OsString>>
[src]
impl Groups for MockUsers
[src]
fn get_group_by_gid(&self, gid: gid_t) -> Option<Arc<Group>>
[src]
fn get_group_by_name<S: AsRef<OsStr> + ?Sized>(
&self,
group_name: &S
) -> Option<Arc<Group>>
[src]
&self,
group_name: &S
) -> Option<Arc<Group>>