Module packet

Source
Expand description

QUIC packets and their codec.

Re-exports§

pub use io::FinalPacketLayout;
pub use io::PacketLayout;
pub use io::PacketWriter;

Modules§

decrypt
Include operations such as decrypting QUIC packets, removing header protection, and parsing the first byte of the packet to get the right packet numbers
encrypt
Include operations such as encrypting QUIC packets, adding header protection, and encoding the first byte of the packet with pn_len and key_phase optionally.
error
QUIC packet parse error definitions.
header
Definitions of QUIC packet headers.
io
The io module provides the functions to parse the QUIC packet.
keys
Encapsulate the crypto keys’s logic for long headers and 1-RTT headers.
number
Encoding and decoding of packet number
signal
Define signal util, such as key phase bit and spin bit.
type
Definitions of QUIC packet types.

Structs§

DataPacket
The sum type of all QUIC data packets.
PacketReader
QUIC packet reader, reading packets from the incoming datagrams.

Enums§

DataHeader
The sum type of all QUIC packet headers.
Packet
The sum type of all QUIC packets.
PacketContains

Traits§

MarshalDataFrame
MarshalFrame
During the formation of a packet, various frames are arranged into the packet.
MarshalPathFrame
Mainly customized for PathChallengeFrame and PathResponseFrame. These frames are sent in the data space but do not need to be reliably guaranteed in the data space.