Function users::get_effective_groupname
source · [−]Expand description
Returns the groupname of the effective user running the process.
libc functions used
Examples
use users::get_effective_groupname;
match get_effective_groupname() {
Some(gname) => println!("Running as effective group with name {:?}", gname),
None => println!("The effective group does not exist!"),
}