[][src]Enum argon2::Error

pub enum Error {
    BadParam(&'static str),
    Code(ErrorCode),
    Unknown,
}

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[src]

impl PartialEq<Error> for Error[src]

impl Debug for Error[src]

Auto Trait Implementations

impl Send for Error

impl Sync for Error

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]