[−][src]Enum tox_encryptsave::DecryptionError
Error when trying to decrypt data.
Variants
Data to be decrypted is empty.
There's not enough data to decrypt.
Provided data has invalid format, incompatible with TES.
KeyDerivation(KeyDerivationError)
Deriving key failed.
Failure due to encrypted data being invalid.
Can happen when:
- data is invalid
- note that it can happen due to bitrot – i.e. even a single byte getting corrupted can render data ~impossible to decrypt
- not all encrypted bytes were provided
- some bytes that aren't encrypted were provided after encrypted bytes
Trait Implementations
impl Clone for DecryptionError
[src]
fn clone(&self) -> DecryptionError
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for DecryptionError
[src]
impl Debug for DecryptionError
[src]
impl Display for DecryptionError
[src]
impl Eq for DecryptionError
[src]
impl Fail for DecryptionError
[src]
fn name(&self) -> Option<&str>
[src]
fn cause(&self) -> Option<&dyn Fail>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
[src]
D: Display + Send + Sync + 'static,
fn compat(self) -> Compat<Self>
[src]
impl From<KeyDerivationError> for DecryptionError
[src]
fn from(err: KeyDerivationError) -> DecryptionError
[src]
impl PartialEq<DecryptionError> for DecryptionError
[src]
fn eq(&self, other: &DecryptionError) -> bool
[src]
fn ne(&self, other: &DecryptionError) -> bool
[src]
impl StructuralEq for DecryptionError
[src]
impl StructuralPartialEq for DecryptionError
[src]
Auto Trait Implementations
impl RefUnwindSafe for DecryptionError
impl Send for DecryptionError
impl Sync for DecryptionError
impl Unpin for DecryptionError
impl UnwindSafe for DecryptionError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsFail for T where
T: Fail,
[src]
T: Fail,
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<E> Fail for E where
E: 'static + Error + Send + Sync,
[src]
E: 'static + Error + Send + Sync,
fn name(&self) -> Option<&str>
[src]
fn cause(&self) -> Option<&(dyn Fail + 'static)>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
[src]
D: Display + Send + Sync + 'static,
fn compat(self) -> Compat<Self>
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,