group_access_list

Function group_access_list 

Source
pub fn group_access_list() -> Result<Vec<Group>>
Expand description

Returns the group access list for the current process.

§libc functions used

§Errors

This function will return Err when an I/O error occurs during the getgroups call.

§Examples

use users::group_access_list;

for group in group_access_list().expect("Error looking up groups") {
    println!("Process can access group #{} ({:?})", group.gid(), group.name());
}