pub enum PacketSecurityError<A, C> {
Encode(PacketSecurityEncodeError),
Decode(PacketSecurityDecodeError),
Authenticator(A),
Cipher(C),
Key(PacketKeyRingError),
AuthenticationFailed {
key_id: u32,
nonce: u64,
},
Replay {
key_id: u32,
nonce: u64,
},
}Expand description
Error produced by packet security helpers.
Variants§
Encode(PacketSecurityEncodeError)
Envelope encode failed.
Decode(PacketSecurityDecodeError)
Envelope decode failed.
Authenticator(A)
Authenticator failed.
Cipher(C)
Cipher failed.
Key(PacketKeyRingError)
Key lifecycle policy rejected the packet or send attempt.
AuthenticationFailed
Authenticator returned false.
Replay
Replay window rejected the nonce.
Trait Implementations§
Source§impl<A, C> Error for PacketSecurityError<A, C>
impl<A, C> Error for PacketSecurityError<A, C>
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()
Auto Trait Implementations§
impl<A, C> Freeze for PacketSecurityError<A, C>
impl<A, C> RefUnwindSafe for PacketSecurityError<A, C>where
A: RefUnwindSafe,
C: RefUnwindSafe,
impl<A, C> Send for PacketSecurityError<A, C>
impl<A, C> Sync for PacketSecurityError<A, C>
impl<A, C> Unpin for PacketSecurityError<A, C>
impl<A, C> UnsafeUnpin for PacketSecurityError<A, C>where
A: UnsafeUnpin,
C: UnsafeUnpin,
impl<A, C> UnwindSafe for PacketSecurityError<A, C>where
A: UnwindSafe,
C: UnwindSafe,
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