whoami::fallible

Function account_os

source
pub fn account_os() -> Result<OsString>
Expand description

Get the user’s account name; usually just the username, but may include an account server hostname.

If you don’t want the account server hostname, use username().

Example: username@example.com