pub enum QuicUnprotectedHeaderError {
PreservedBitsMismatch {
protected_first_byte: u8,
unprotected_first_byte: u8,
preserved_mask: u8,
},
PacketNumberLengthMismatch {
expected: usize,
supplied: usize,
},
ProtectedRemainderTooShort {
required: usize,
available: usize,
},
}Expand description
Failure to associate caller-unprotected bytes with a protected QUIC packet view.
Variants§
PreservedBitsMismatch
Header-protection-preserved first-byte bits differ from the protected packet.
Fields
PacketNumberLengthMismatch
The supplied truncated packet-number byte count disagrees with the unprotected first byte.
Fields
ProtectedRemainderTooShort
The protected packet remainder cannot physically contain the indicated packet number.
Trait Implementations§
Source§impl Clone for QuicUnprotectedHeaderError
impl Clone for QuicUnprotectedHeaderError
impl Copy for QuicUnprotectedHeaderError
Source§impl Debug for QuicUnprotectedHeaderError
impl Debug for QuicUnprotectedHeaderError
Source§impl Display for QuicUnprotectedHeaderError
impl Display for QuicUnprotectedHeaderError
impl Eq for QuicUnprotectedHeaderError
impl StructuralPartialEq for QuicUnprotectedHeaderError
Auto Trait Implementations§
impl Freeze for QuicUnprotectedHeaderError
impl RefUnwindSafe for QuicUnprotectedHeaderError
impl Send for QuicUnprotectedHeaderError
impl Sync for QuicUnprotectedHeaderError
impl Unpin for QuicUnprotectedHeaderError
impl UnsafeUnpin for QuicUnprotectedHeaderError
impl UnwindSafe for QuicUnprotectedHeaderError
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