Enum djangohashers::HasherError
source · pub enum HasherError {
UnknownAlgorithm,
BadHash,
EmptyHash,
InvalidIterations,
InvalidArgon2Salt,
}
Expand description
Possible errors during a hash creation.
Variants§
UnknownAlgorithm
Algorithm not recognizable.
BadHash
Hash string is corrupted.
EmptyHash
Hash string is empty.
InvalidIterations
Number of iterations is not a positive integer.
InvalidArgon2Salt
Argon2 salt should be Base64 encoded.
Trait Implementations§
source§impl Debug for HasherError
impl Debug for HasherError
source§impl PartialEq for HasherError
impl PartialEq for HasherError
source§fn eq(&self, other: &HasherError) -> bool
fn eq(&self, other: &HasherError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for HasherError
Auto Trait Implementations§
impl Freeze for HasherError
impl RefUnwindSafe for HasherError
impl Send for HasherError
impl Sync for HasherError
impl Unpin for HasherError
impl UnwindSafe for HasherError
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