Function users::get_current_gid [−][src]
pub fn get_current_gid() -> gid_t
Returns the group ID for the user running the process.
libc functions used
Examples
use users::get_current_gid; println!("The ID of the current group is {}", get_current_gid());