Settings
Help

Module user

Module user 

Source
Available on target_family="unix" and non-iOS and non-Android and non-tvOS only.
Expand description

Code to inspect user db information on unix.

ModulesΒ§

serde_support πŸ”’ serde
Serde support for TrustedUser and TrustedGroup.

StructsΒ§

TrustedUsersCache πŸ”’
Cache for the trusted uid/gid answers

EnumsΒ§

TrustedGroup
A group that we can be configured to trust.
TrustedUser
A user that we can be configured to trust.

StaticsΒ§

CACHE πŸ”’
Cached trusted id determinations

FunctionsΒ§

cur_groups πŸ”’
Return a vector of the group ID values for every group to which we belong.
get_own_username πŸ”’
Find our username, if possible.
get_self_named_gid_impl πŸ”’
Obtain the gid of a group named after the current user
handle_pwd_error πŸ”’
Convert an io::Error representing a user/group handling failure into an Error

Type AliasesΒ§

Id πŸ”’
uids and gids, convenient type alias