#[non_exhaustive]pub enum PasswordHashError {
InvalidPolicy,
Hashing,
InvalidHash,
Execution,
}Expand description
Password-hashing failure without secret-bearing diagnostics.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidPolicy
The configured Argon2 policy is not supported.
Hashing
Argon2 could not create the encoded password hash.
InvalidHash
The stored PHC string is malformed or unsupported.
Execution
A blocking verification task could not complete.
Trait Implementations§
Source§impl Clone for PasswordHashError
impl Clone for PasswordHashError
impl Copy for PasswordHashError
Source§impl Debug for PasswordHashError
impl Debug for PasswordHashError
Source§impl Display for PasswordHashError
impl Display for PasswordHashError
impl Eq for PasswordHashError
Source§impl Error for PasswordHashError
impl Error for PasswordHashError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for PasswordHashError
impl PartialEq for PasswordHashError
impl StructuralPartialEq for PasswordHashError
Auto Trait Implementations§
impl Freeze for PasswordHashError
impl RefUnwindSafe for PasswordHashError
impl Send for PasswordHashError
impl Sync for PasswordHashError
impl Unpin for PasswordHashError
impl UnsafeUnpin for PasswordHashError
impl UnwindSafe for PasswordHashError
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