[][src]Enum paseto::errors::SodiumErrors

pub enum SodiumErrors {
    InvalidKeySize {
        size_provided: usize,
        size_needed: usize,
    },
    InvalidNonceSize {
        size_provided: usize,
        size_needed: usize,
    },
    InvalidKey {},
    FunctionError {},
    InvalidOutputSize {},
}

Variants

InvalidKeySize

Fields of InvalidKeySize

size_provided: usizesize_needed: usize
InvalidNonceSize

Fields of InvalidNonceSize

size_provided: usizesize_needed: usize
InvalidKey

Fields of InvalidKey

FunctionError

Fields of FunctionError

InvalidOutputSize

Fields of InvalidOutputSize

Trait Implementations

impl Debug for SodiumErrors[src]

impl Display for SodiumErrors[src]

impl Fail for SodiumErrors[src]

Auto Trait Implementations

Blanket Implementations

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

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = !

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> AsFail for T where
    T: Fail
[src]

impl<E> Fail for E where
    E: 'static + Error + Send + Sync
[src]