Enum password_hash::errors::Error [−][src]
#[non_exhaustive]
pub enum Error {
Show 15 variants
Algorithm,
B64Encoding(B64Error),
Crypto,
OutputTooShort,
OutputTooLong,
ParamNameDuplicated,
ParamNameInvalid,
ParamValueInvalid(InvalidValue),
ParamsMaxExceeded,
Password,
PhcStringInvalid,
PhcStringTooShort,
PhcStringTooLong,
SaltInvalid(InvalidValue),
Version,
}
Expand description
Password hashing errors.
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.
Unsupported algorithm.
B64Encoding(B64Error)
“B64” encoding error.
Tuple Fields of B64Encoding
0: B64Error
Cryptographic error.
Output too short (min 10-bytes).
Output too long (max 64-bytes).
Duplicate parameter name encountered.
Invalid parameter name.
ParamValueInvalid(InvalidValue)
Invalid parameter value.
Tuple Fields of ParamValueInvalid
0: InvalidValue
Maximum number of parameters exceeded.
Invalid password.
Password hash string contains invalid characters.
Password hash string too short.
Password hash string too long.
SaltInvalid(InvalidValue)
Salt invalid.
Tuple Fields of SaltInvalid
0: InvalidValue
Invalid algorithm version.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more