Function uzers::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 uzers::get_current_uid;

println!("The ID of the current user is {}", get_current_uid());