get_uid

Function get_uid 

Source
pub fn get_uid() -> Result<usize, Error>
Expand description

Gets the current process real user ID.

This function issues the getuid system call returning the process real user id.

ยงExamples

Basic usage:

let uid = get_uid().unwrap();