pub fn current_uid() -> u32
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.
launchctl bootstrap gui/<uid>
0