Function get_current_uid
Source pub fn get_current_uid() -> uid_t
Expand description
Returns the user ID for the user running the process.
§libc functions used
§Examples
use users::get_current_uid;
println!("The ID of the current user is {}", get_current_uid());