pub enum EncryptionError {
Null,
KeyDerivation(KeyDerivationError),
}
Expand description
Error encrypting data.
Variants§
Null
Data provided for encryption is empty.
KeyDerivation(KeyDerivationError)
Failed to derive key – KeyDerivationError
(./enum.KeyDerivationError.html)
Trait Implementations§
Source§impl Clone for EncryptionError
impl Clone for EncryptionError
Source§fn clone(&self) -> EncryptionError
fn clone(&self) -> EncryptionError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EncryptionError
impl Debug for EncryptionError
Source§impl Display for EncryptionError
impl Display for EncryptionError
Source§impl Fail for EncryptionError
impl Fail for EncryptionError
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moreSource§impl From<KeyDerivationError> for EncryptionError
impl From<KeyDerivationError> for EncryptionError
Source§fn from(err: KeyDerivationError) -> EncryptionError
fn from(err: KeyDerivationError) -> EncryptionError
Converts to this type from the input type.
Source§impl PartialEq for EncryptionError
impl PartialEq for EncryptionError
impl Copy for EncryptionError
impl Eq for EncryptionError
impl StructuralPartialEq for EncryptionError
Auto Trait Implementations§
impl Freeze for EncryptionError
impl RefUnwindSafe for EncryptionError
impl Send for EncryptionError
impl Sync for EncryptionError
impl Unpin for EncryptionError
impl UnwindSafe for EncryptionError
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