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
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