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),
}
Expand description
High level error enum for when a single error type like DecryptError
is too specific.
Variants§
Trait Implementations§
Source§impl Debug for EnconError
impl Debug for EnconError
Source§impl Display for EnconError
impl Display for EnconError
Source§impl Error for EnconError
impl Error for EnconError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<DecryptError> for EnconError
impl From<DecryptError> for EnconError
Source§fn from(source: DecryptError) -> Self
fn from(source: DecryptError) -> Self
Converts to this type from the input type.
Source§impl From<EncryptError> for EnconError
impl From<EncryptError> for EnconError
Source§fn from(source: EncryptError) -> Self
fn from(source: EncryptError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EnconError
impl !RefUnwindSafe for EnconError
impl Send for EnconError
impl !Sync for EnconError
impl Unpin for EnconError
impl !UnwindSafe for EnconError
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