pub struct TagMismatch;Expand description
Error returned by AEAD decryption when the authentication tag does not match — the ciphertext is inauthentic and the plaintext must be discarded.
Trait Implementations§
Source§impl Clone for TagMismatch
impl Clone for TagMismatch
Source§fn clone(&self) -> TagMismatch
fn clone(&self) -> TagMismatch
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 TagMismatch
Source§impl Debug for TagMismatch
impl Debug for TagMismatch
Source§impl Display for TagMismatch
impl Display for TagMismatch
impl Eq for TagMismatch
Source§impl Error for TagMismatch
impl Error for TagMismatch
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<TagMismatch> for KwError
impl From<TagMismatch> for KwError
Source§fn from(_: TagMismatch) -> Self
fn from(_: TagMismatch) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TagMismatch
impl PartialEq for TagMismatch
Source§fn eq(&self, other: &TagMismatch) -> bool
fn eq(&self, other: &TagMismatch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TagMismatch
Auto Trait Implementations§
impl Freeze for TagMismatch
impl RefUnwindSafe for TagMismatch
impl Send for TagMismatch
impl Sync for TagMismatch
impl Unpin for TagMismatch
impl UnsafeUnpin for TagMismatch
impl UnwindSafe for TagMismatch
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