Skip to main content

current_uid

Function current_uid 

Source
pub fn current_uid() -> u32
Expand description

The calling user’s numeric id.

Used to address a per-user service domain (launchctl bootstrap gui/<uid>). Returns 0 on platforms with no POSIX uid, where no such domain exists.