[−]Enum safe_crypto::Error
This error is returned if encryption or decryption fails. The encryption failure is rare and mostly connected to serialisation failures. Decryption can fail because of invalid keys, invalid data, or deserialisation failures.
Variants
Serialisation(SerialisationError)
Occurs when serialisation or deserialisation fails.
DecryptVerify(())
Occurs when we can't decrypt a message or verify the signature.
InitError(i32)
Occurs in case of an error during initialisation.
Occurs when we fail to derive encryption key from password.
Trait Implementations
impl From<SerialisationError> for Error
fn from(e: SerialisationError) -> Error
impl From<()> for Error
impl From<i32> for Error
impl Display for Error
impl Debug for Error
[src]
impl Error for Error
Auto Trait Implementations
impl Send for Error
impl Unpin for Error
impl Sync for Error
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> DebugAny for T where
T: Any + Debug,
T: Any + Debug,
impl<T> UnsafeAny for T where
T: Any,
T: Any,