pub enum PacketSecurityDecodeError {
BadMagic,
Truncated {
needed: usize,
available: usize,
},
PayloadTooLarge {
budget: usize,
actual: usize,
},
TagTooLarge {
budget: usize,
actual: usize,
},
TrailingBytes(usize),
}Expand description
Packet security decode error.
Variants§
BadMagic
Frame magic did not match.
Truncated
Frame ended before all fields were available.
PayloadTooLarge
Payload exceeded configured budget.
TagTooLarge
Authentication tag exceeded configured budget.
TrailingBytes(usize)
Frame had trailing bytes after a complete envelope.
Trait Implementations§
Source§impl Clone for PacketSecurityDecodeError
impl Clone for PacketSecurityDecodeError
Source§fn clone(&self) -> PacketSecurityDecodeError
fn clone(&self) -> PacketSecurityDecodeError
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 moreSource§impl Debug for PacketSecurityDecodeError
impl Debug for PacketSecurityDecodeError
Source§impl Display for PacketSecurityDecodeError
impl Display for PacketSecurityDecodeError
impl Eq for PacketSecurityDecodeError
Source§impl Error for PacketSecurityDecodeError
impl Error for PacketSecurityDecodeError
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()
impl StructuralPartialEq for PacketSecurityDecodeError
Auto Trait Implementations§
impl Freeze for PacketSecurityDecodeError
impl RefUnwindSafe for PacketSecurityDecodeError
impl Send for PacketSecurityDecodeError
impl Sync for PacketSecurityDecodeError
impl Unpin for PacketSecurityDecodeError
impl UnsafeUnpin for PacketSecurityDecodeError
impl UnwindSafe for PacketSecurityDecodeError
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