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