Trait users::Users [] [src]

pub trait Users {
    fn get_user_by_uid(&self, uid: uid_t) -> Option<Arc<User>>;
fn get_user_by_name(&self, username: &str) -> Option<Arc<User>>;
fn get_current_uid(&self) -> uid_t;
fn get_current_username(&self) -> Option<Arc<String>>;
fn get_effective_uid(&self) -> uid_t;
fn get_effective_username(&self) -> Option<Arc<String>>; }

Trait for producers of users.

Required Methods

Returns a User if one exists for the given user ID; otherwise, returns None.

Returns a User if one exists for the given username; otherwise, returns None.

Returns the user ID for the user running the process.

Returns the username of the user running the process.

Returns the effective user id.

Returns the effective username.

Implementors