Enum argon2_kdf::Argon2Error
source · pub enum Argon2Error {
InvalidParameter(&'static str),
InvalidHash(&'static str),
CLibError(String),
}Expand description
Errors that may occur when using this crate
Variants§
InvalidParameter(&'static str)
Indicates that the user of a type or function has specified an invalid parameter or set of parameters
InvalidHash(&'static str)
Indicates that a provided hash was expected to be valid, but is invalid. This normally occurs when a hash is improperly formatted.
CLibError(String)
An error that is unhandled by the crate, but is recognized by the C argon2 library
Trait Implementations§
source§impl Debug for Argon2Error
impl Debug for Argon2Error
source§impl Display for Argon2Error
impl Display for Argon2Error
source§impl Error for Argon2Error
impl Error for Argon2Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
Auto Trait Implementations§
impl RefUnwindSafe for Argon2Error
impl Send for Argon2Error
impl Sync for Argon2Error
impl Unpin for Argon2Error
impl UnwindSafe for Argon2Error
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