Function users::get_effective_uid
source · [−]pub fn get_effective_uid() -> uid_t
Expand description
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());