Function get_current_system_user

Source
pub(crate) fn get_current_system_user() -> Result<User, Error>
Expand description

Returns the [User] associated with the current process.

Retrieves user data of the system based on the effective user ID of the current process.

ยงErrors

Returns an error if

  • no user data can be derived from the current process
  • no user data can be found on the system, associated with the ID of the user of the current process.