pub fn get_uid() -> Result<usize, Error>
Gets the current process real user ID.
This function issues the getuid system call returning the process real user id.
getuid
Basic usage:
let uid = get_uid().unwrap();