pub fn getgroups() -> Result<Vec<uid_t>>Expand description
Get the current process’s supplementary group list
Note that on some operating systems,
the output of this function contains the result of gettegid(),
and on some operating systems it does not.
If you are using this function,
you should should generally call geteuid() as well.
§Example
let gg = pwd_grp::getgroups().unwrap();
println!("supplementary groups are: {:?}", gg);