Function users::group_access_list
source · [−]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());
}