pub enum DecryptionError {
InvalidBase64(DecodeError),
InvalidUTF8(FromUtf8Error),
IOError(&'static str),
}Expand description
Errors that can occur while decoding.
Variants§
InvalidBase64(DecodeError)
An invalid base64 string was found in the input.
InvalidUTF8(FromUtf8Error)
An invalid UTF8 string was found once decrypted.
IOError(&'static str)
An invalid input/output was
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 description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl From<DecodeError> for DecryptionError
impl From<DecodeError> for DecryptionError
Source§fn from(err: DecodeError) -> DecryptionError
fn from(err: DecodeError) -> DecryptionError
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for DecryptionError
impl From<FromUtf8Error> for DecryptionError
Source§fn from(err: FromUtf8Error) -> DecryptionError
fn from(err: FromUtf8Error) -> DecryptionError
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