pub enum DecryptionError {
Base64Decoding(DecodeError),
Decryption,
Deserialization(Error),
}
Expand description
Returned from EncryptedMessage
decryption methods when an error occurs.
Variants§
Base64Decoding(DecodeError)
This error occurs when a field in EncryptedMessage
could not be base64-decoded.
Decryption
This error occurs when a payload could not be decrypted with any of the available keys.
Deserialization(Error)
This error occurs when a payload could not be deserialized into the expected type.
Trait Implementations§
Source§impl Debug for DecryptionError
impl Debug for DecryptionError
Source§impl Display for DecryptionError
impl Display for DecryptionError
Source§impl Error for DecryptionError
impl Error for DecryptionError
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<DecodeError> for DecryptionError
impl From<DecodeError> for DecryptionError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DecryptionError
impl !RefUnwindSafe for DecryptionError
impl Send for DecryptionError
impl Sync for DecryptionError
impl Unpin for DecryptionError
impl !UnwindSafe for DecryptionError
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