[][src]Enum encon::DecryptError

pub enum DecryptError {
    InputTooShort,
    DeriveKey,
    Init,
    LikelyWrongPassword,
    Write {
        source: Error,
    },
    Deserialize {
        source: Error,
    },
    Utf8 {
        source: FromUtf8Error,
    },
}

An error that may arise during decryption.

The main cases you want to handle are LikelyWrongPassword and InputTooShort. The former indicates the password is wrong, and the latter indicates that the encrypted blob is invalid.

For the Write, Serialize, and Utf8 variants, there's an underlying source value (see the std::error::Error trait).

Variants

InputTooShort
DeriveKey
Init
LikelyWrongPassword
Write

Fields of Write

source: Error
Deserialize

Fields of Deserialize

source: Error
Utf8

Fields of Utf8

source: FromUtf8Error

Trait Implementations

impl Debug for DecryptError[src]

impl Display for DecryptError[src]

impl Error for DecryptError[src]

impl From<DecryptError> for EnconError[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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