[go: up one dir, main page]

Function users::get_user_by_name

source ·
pub fn get_user_by_name<S: AsRef<OsStr> + ?Sized>(username: &S) -> Option<User>
Expand description

Searches for a User with the given username in the system’s user database. Returns it if one is found, otherwise returns None.