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
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
Converts to this type from the input type.
sourceimpl From<DecodeError> for MagicCryptError
impl From<DecodeError> for MagicCryptError
sourcefn from(error: DecodeError) -> MagicCryptError
fn from(error: DecodeError) -> MagicCryptError
Converts to this type from the input type.
sourceimpl From<Error> for MagicCryptError
impl From<Error> for MagicCryptError
sourcefn from(error: IOError) -> MagicCryptError
fn from(error: IOError) -> MagicCryptError
Converts to this type from the input type.
sourceimpl From<FromUtf8Error> for MagicCryptError
impl From<FromUtf8Error> for MagicCryptError
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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