Enum bcrypt::BcryptError
[−]
[src]
pub enum BcryptError { Io(Error), CostNotAllowed(u32), InvalidCost(String), InvalidPrefix(String), InvalidHash(String), InvalidBase64(char, String), }
All the errors we can encounter while hashing/verifying passwords
Variants
Io(Error)
CostNotAllowed(u32)
InvalidCost(String)
InvalidPrefix(String)
InvalidHash(String)
InvalidBase64(char, String)
Trait Implementations
impl Debug for BcryptError
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl From<Error> for BcryptError
[src]
fn from(f: Error) -> BcryptError
[src]
Performs the conversion.
impl Display for BcryptError
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more