Skip to main content

Module packet

Module packet 

Available on crate feature quic only.

Structs§

FixedLengthConnectionIdParser
A ConnectionIdParser implementation that assumes the connection ID is of fixed length
InitialHeader
InitialPacket
Packet
PartialDecode
Decodes a QUIC packet’s invariant header
PartialEncode
ProtectedInitialHeader
Header of an Initial packet, before decryption
RoutingPacket
A borrowed invariant header and the first packet’s bytes, for endpoint routing. Uses the same decoder as PartialDecode without allocating or splitting the datagram.

Enums§

Header
LongHeaderType
Long packet type including non-uniform cases
LongType
Long packet types with uniform header structure
PacketDecodeError
Packet decode error
PacketNumber
ProtectedHeader
Plain packet header
SpaceId
Packet number space identifiers

Constants§

FIXED_BIT
LONG_HEADER_FORM
MAX_PACKET_NUMBER
The largest packet number a connection can use (RFC 9000 §12.3).
MAX_PACKET_NUMBER_DISTANCE
How far past the largest acknowledged packet a packet number can still be sent: its 4-byte encoding must cover twice that distance (RFC 9000 §17.1).
SPIN_BIT

Traits§

ConnectionIdParser
Parse connection id in short header packet