pub struct QuicRetryPacketBuilder<'buffer, 'input> { /* private fields */ }Expand description
Builds a terminal QUIC v1 or v2 Retry packet in caller-owned storage.
Implementations§
Source§impl<'buffer, 'input> QuicRetryPacketBuilder<'buffer, 'input>
impl<'buffer, 'input> QuicRetryPacketBuilder<'buffer, 'input>
Sourcepub fn new(
destination: &'buffer mut [u8],
version: QuicVersion,
unused_bits: u8,
destination_connection_id: QuicConnectionId<'input>,
source_connection_id: QuicConnectionId<'input>,
token: &'input [u8],
integrity_tag: &'input [u8; 16],
) -> Self
pub fn new( destination: &'buffer mut [u8], version: QuicVersion, unused_bits: u8, destination_connection_id: QuicConnectionId<'input>, source_connection_id: QuicConnectionId<'input>, token: &'input [u8], integrity_tag: &'input [u8; 16], ) -> Self
Creates a builder for a Retry packet with supplied opaque token and integrity-tag bytes.
Sourcepub fn build(self) -> Result<QuicRetryPacket<'buffer>, QuicPacketBuildError>
pub fn build(self) -> Result<QuicRetryPacket<'buffer>, QuicPacketBuildError>
Validates all inputs and capacity before writing a complete Retry packet.
Auto Trait Implementations§
impl<'buffer, 'input> !UnwindSafe for QuicRetryPacketBuilder<'buffer, 'input>
impl<'buffer, 'input> Freeze for QuicRetryPacketBuilder<'buffer, 'input>
impl<'buffer, 'input> RefUnwindSafe for QuicRetryPacketBuilder<'buffer, 'input>
impl<'buffer, 'input> Send for QuicRetryPacketBuilder<'buffer, 'input>
impl<'buffer, 'input> Sync for QuicRetryPacketBuilder<'buffer, 'input>
impl<'buffer, 'input> Unpin for QuicRetryPacketBuilder<'buffer, 'input>
impl<'buffer, 'input> UnsafeUnpin for QuicRetryPacketBuilder<'buffer, 'input>
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