Function users::get_effective_groupname [−][src]
pub fn get_effective_groupname() -> Option<OsString>
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!"), }