Trait users::os::unix::UserExt [−][src]
Unix-specific extensions for User
s.
Required methods
fn home_dir(&self) -> &Path
[src]
Returns a path to this user’s home directory.
fn with_home_dir<S: AsRef<OsStr> + ?Sized>(self, home_dir: &S) -> Self
[src]
Sets this user value’s home directory to the given string. Can be used to construct test users, which by default come with a dummy home directory string.
fn shell(&self) -> &Path
[src]
Returns a path to this user’s shell.
fn with_shell<S: AsRef<OsStr> + ?Sized>(self, shell: &S) -> Self
[src]
Sets this user’s shell path to the given string. Can be used to construct test users, which by default come with a dummy shell field.
fn password(&self) -> &OsStr
[src]
Returns the user’s encrypted password.
fn with_password<S: AsRef<OsStr> + ?Sized>(self, password: &S) -> Self
[src]
Sets this user’s password to the given string. Can be used to construct tests users, which by default come with a dummy password field.