Enum magic_crypt::MagicCryptError
source · [−]pub enum MagicCryptError {
IOError(IOError),
Base64Error(DecodeError),
StringError(FromUtf8Error),
DecryptError(BlockModeError),
}Expand description
Errors for MagicCrypt.
Variants
IOError(IOError)
Base64Error(DecodeError)
StringError(FromUtf8Error)
DecryptError(BlockModeError)
Trait Implementations
sourceimpl Debug for MagicCryptError
impl Debug for MagicCryptError
sourceimpl Display for MagicCryptError
impl Display for MagicCryptError
sourceimpl Error for MagicCryptError
impl Error for MagicCryptError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<BlockModeError> for MagicCryptError
impl From<BlockModeError> for MagicCryptError
sourcefn from(error: BlockModeError) -> MagicCryptError
fn from(error: BlockModeError) -> MagicCryptError
Performs the conversion.
sourceimpl From<DecodeError> for MagicCryptError
impl From<DecodeError> for MagicCryptError
sourcefn from(error: DecodeError) -> MagicCryptError
fn from(error: DecodeError) -> MagicCryptError
Performs the conversion.
sourceimpl From<Error> for MagicCryptError
impl From<Error> for MagicCryptError
sourcefn from(error: IOError) -> MagicCryptError
fn from(error: IOError) -> MagicCryptError
Performs the conversion.
sourceimpl From<FromUtf8Error> for MagicCryptError
impl From<FromUtf8Error> for MagicCryptError
sourcefn from(error: FromUtf8Error) -> MagicCryptError
fn from(error: FromUtf8Error) -> MagicCryptError
Performs the conversion.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more