pub enum PasswordState {
Empty,
NoPassword,
Locked,
Hash(&'static str),
}Expand description
What a shadow password field holds.
Variants§
Empty
Empty: no password needed, where PAM allows it (nullok).
NoPassword
* or ! alone: no password can match; logins by key still work.
Locked
A hash behind !: locked (passwd -l), the hash kept.
Hash(&'static str)
A hash: the account logs in with a password. Its scheme
(yescrypt, sha512crypt, …) as the hash’s prefix names it.
Implementations§
Trait Implementations§
Source§impl Clone for PasswordState
impl Clone for PasswordState
impl Copy for PasswordState
Source§impl Debug for PasswordState
impl Debug for PasswordState
impl Eq for PasswordState
Source§impl Hash for PasswordState
impl Hash for PasswordState
Source§impl PartialEq for PasswordState
impl PartialEq for PasswordState
impl StructuralPartialEq for PasswordState
Auto Trait Implementations§
impl Freeze for PasswordState
impl RefUnwindSafe for PasswordState
impl Send for PasswordState
impl Sync for PasswordState
impl Unpin for PasswordState
impl UnsafeUnpin for PasswordState
impl UnwindSafe for PasswordState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more