current_user

Function current_user 

Source
pub fn current_user() -> Result<String, CurrentUserError>
Expand description

Determine the current user name to use.

Checks the PGUSER then USER environment variables first, which allows the invoking user to override the current user name. If those are not set, it obtains the user name from the OS.