Enum magic_crypt::MagicCryptError
source · pub enum MagicCryptError {
IOError(Error),
Base64Error(DecodeError),
StringError(FromUtf8Error),
DecryptError(BlockModeError),
}
Expand description
Errors for MagicCrypt.
Variants§
Trait Implementations§
source§impl Debug for MagicCryptError
impl Debug for MagicCryptError
source§impl Display for MagicCryptError
impl Display for MagicCryptError
source§impl Error for MagicCryptError
impl Error for MagicCryptError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<BlockModeError> for MagicCryptError
impl From<BlockModeError> for MagicCryptError
source§fn from(error: BlockModeError) -> MagicCryptError
fn from(error: BlockModeError) -> MagicCryptError
Converts to this type from the input type.
source§impl From<DecodeError> for MagicCryptError
impl From<DecodeError> for MagicCryptError
source§fn from(error: DecodeError) -> MagicCryptError
fn from(error: DecodeError) -> MagicCryptError
Converts to this type from the input type.
source§impl From<Error> for MagicCryptError
impl From<Error> for MagicCryptError
source§fn from(error: IOError) -> MagicCryptError
fn from(error: IOError) -> MagicCryptError
Converts to this type from the input type.
source§impl From<FromUtf8Error> for MagicCryptError
impl From<FromUtf8Error> for MagicCryptError
source§fn from(error: FromUtf8Error) -> MagicCryptError
fn from(error: FromUtf8Error) -> MagicCryptError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for MagicCryptError
impl Send for MagicCryptError
impl Sync for MagicCryptError
impl Unpin for MagicCryptError
impl !UnwindSafe for MagicCryptError
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