pub struct QuicRetryPacket<'a> { /* private fields */ }Expand description
A borrowed QUIC v1 or v2 Retry packet occupying its complete supplied datagram slice.
Retry token bytes and the final Retry Integrity Tag remain opaque. This view does not verify the integrity tag or interpret the token.
Implementations§
Source§impl<'a> QuicRetryPacket<'a>
impl<'a> QuicRetryPacket<'a>
Sourcepub fn parse(bytes: &'a [u8]) -> Result<Self, QuicPacketParseError>
pub fn parse(bytes: &'a [u8]) -> Result<Self, QuicPacketParseError>
Parses a complete QUIC v1 or v2 Retry terminal packet.
Sourcepub const fn header(self) -> QuicLongHeader<'a>
pub const fn header(self) -> QuicLongHeader<'a>
Returns the accepted invariant long-header prefix.
Sourcepub const fn version(self) -> QuicVersion
pub const fn version(self) -> QuicVersion
Returns the supported QUIC version.
Sourcepub const fn packet_type(self) -> QuicLongPacketType
pub const fn packet_type(self) -> QuicLongPacketType
Returns the Retry semantic packet type.
Sourcepub const fn integrity_tag(self) -> &'a [u8]
pub const fn integrity_tag(self) -> &'a [u8]
Returns the exact final 16-byte opaque Retry Integrity Tag.
Trait Implementations§
Source§impl<'a> Clone for QuicRetryPacket<'a>
impl<'a> Clone for QuicRetryPacket<'a>
impl<'a> Copy for QuicRetryPacket<'a>
Source§impl<'a> Debug for QuicRetryPacket<'a>
impl<'a> Debug for QuicRetryPacket<'a>
impl<'a> Eq for QuicRetryPacket<'a>
Source§impl<'a> PartialEq for QuicRetryPacket<'a>
impl<'a> PartialEq for QuicRetryPacket<'a>
impl<'a> StructuralPartialEq for QuicRetryPacket<'a>
Auto Trait Implementations§
impl<'a> Freeze for QuicRetryPacket<'a>
impl<'a> RefUnwindSafe for QuicRetryPacket<'a>
impl<'a> Send for QuicRetryPacket<'a>
impl<'a> Sync for QuicRetryPacket<'a>
impl<'a> Unpin for QuicRetryPacket<'a>
impl<'a> UnsafeUnpin for QuicRetryPacket<'a>
impl<'a> UnwindSafe for QuicRetryPacket<'a>
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