pub enum Argon2Error {
InvalidParams(&'static str),
InvalidEncoding(&'static str),
VerifyMismatch,
}Expand description
Argon2 error type.
Variants§
InvalidParams(&'static str)
Invalid parameter
InvalidEncoding(&'static str)
Invalid encoded string
VerifyMismatch
Password verification failed
Trait Implementations§
Source§impl Clone for Argon2Error
impl Clone for Argon2Error
Source§fn clone(&self) -> Argon2Error
fn clone(&self) -> Argon2Error
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Argon2Error
impl Debug for Argon2Error
Source§impl Display for Argon2Error
Available on crate feature alloc only.
impl Display for Argon2Error
Available on crate feature
alloc only.impl Eq for Argon2Error
Source§impl PartialEq for Argon2Error
impl PartialEq for Argon2Error
Source§fn eq(&self, other: &Argon2Error) -> bool
fn eq(&self, other: &Argon2Error) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Argon2Error
Auto Trait Implementations§
impl Freeze for Argon2Error
impl RefUnwindSafe for Argon2Error
impl Send for Argon2Error
impl Sync for Argon2Error
impl Unpin for Argon2Error
impl UnsafeUnpin 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