pub enum Error {
BadParam(&'static str),
Code(ErrorCode),
Unknown,
}
Expand description
Error type returned by all Rust wrappers of Argon2 functions.
Variants§
BadParam(&'static str)
This error is returned whenever a bad parameter is passed in but doesn’t make it past the wrapper layer. e.g. a parameter that cannot be converted to the type required by the argon2 C library.
Code(ErrorCode)
An error returned from the argon2 C library in the form of an error code.
Unknown
An error occurred an argon2 but it has no Rust wrapper. These are bugs in the library itself.
Trait Implementations§
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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