Enum bcrypt::BcryptError [] [src]

pub enum BcryptError {
    Io(Error),
    CostNotAllowed(u32),
    InvalidCost(String),
    InvalidPrefix(String),
    InvalidHash(String),
    InvalidBase64(charString),
}

All the errors we can encounter while hashing/verifying passwords

Variants

Trait Implementations

impl Debug for BcryptError
[src]

[src]

Formats the value using the given formatter. Read more

impl From<Error> for BcryptError
[src]

[src]

Performs the conversion.

impl Display for BcryptError
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for BcryptError
[src]

[src]

A short description of the error. Read more

[src]

The lower-level cause of this error, if any. Read more

Auto Trait Implementations

impl Send for BcryptError

impl Sync for BcryptError