[][src]Enum encon::EnconError

pub enum EnconError {
    Encrypt(EncryptError),
    Decrypt(DecryptError),
    ApplyIntent {
        target_kind: EncryptableKind,
        source: Box<dyn Error + Send>,
    },
    DecryptAll {
        good_keys: Vec<String>,
        bad_keys: Vec<String>,
        source: Box<dyn Error + Send>,
    },
    MapToJson(MapToJsonError),
}

High level error enum for when a single error type like DecryptError is too specific.

Variants

Encrypt(EncryptError)
Decrypt(DecryptError)
ApplyIntent

Fields of ApplyIntent

target_kind: EncryptableKindsource: Box<dyn Error + Send>
DecryptAll

Fields of DecryptAll

good_keys: Vec<String>bad_keys: Vec<String>source: Box<dyn Error + Send>
MapToJson(MapToJsonError)

Trait Implementations

impl Debug for EnconError[src]

impl Display for EnconError[src]

impl Error for EnconError[src]

impl From<DecryptError> for EnconError[src]

impl From<EncryptError> 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.