pub enum DecryptionError {
MessageTooShort,
InvalidCiphertext,
UnknownHeader,
}Expand description
An error while decrypting
Variants§
MessageTooShort
The ciphertext was too short to possibly be valid
InvalidCiphertext
The GCM tag did not validate
UnknownHeader
The expected message header did not appear in the ciphertext
Either the ciphertext was invalid, or possibly the decrypting side needs to be upgraded to support a new format
Trait Implementations§
Source§impl Clone for DecryptionError
impl Clone for DecryptionError
Source§fn clone(&self) -> DecryptionError
fn clone(&self) -> DecryptionError
Returns a duplicate 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 DecryptionError
impl Debug for DecryptionError
Source§impl PartialEq for DecryptionError
impl PartialEq for DecryptionError
impl Copy for DecryptionError
impl Eq for DecryptionError
impl StructuralPartialEq for DecryptionError
Auto Trait Implementations§
impl Freeze for DecryptionError
impl RefUnwindSafe for DecryptionError
impl Send for DecryptionError
impl Sync for DecryptionError
impl Unpin for DecryptionError
impl UnwindSafe for DecryptionError
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