pub enum DecryptError {
Eof,
Repeat,
Late,
Mac,
}Expand description
The reason a decrypt operation failed.
Variants§
Eof
The packet is too short to be decrypted
Repeat
The packet has already been decrypted previously.
Late
The packet was far too late.
Mac
The MAC of the decrypted packet did not match.
This may also indicate a substantial de-sync of the decryption nonce.
Trait Implementations§
Source§impl Clone for DecryptError
impl Clone for DecryptError
Source§fn clone(&self) -> DecryptError
fn clone(&self) -> DecryptError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DecryptError
Source§impl Debug for DecryptError
impl Debug for DecryptError
impl Eq for DecryptError
Source§impl PartialEq for DecryptError
impl PartialEq for DecryptError
Source§fn eq(&self, other: &DecryptError) -> bool
fn eq(&self, other: &DecryptError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DecryptError
Auto Trait Implementations§
impl Freeze for DecryptError
impl RefUnwindSafe for DecryptError
impl Send for DecryptError
impl Sync for DecryptError
impl Unpin for DecryptError
impl UnsafeUnpin for DecryptError
impl UnwindSafe for DecryptError
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