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 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 DecryptError
impl Debug for DecryptError
Source§impl PartialEq for DecryptError
impl PartialEq for DecryptError
impl Copy for DecryptError
impl Eq for DecryptError
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 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