Skip to main content

Module transport

Module transport 

Source
Expand description

Connected QUIC transport, shared framing, and the registry kind.

QuicTransport owns one bidirectional QUIC stream on a Quinn Connection. Each send is written as a 4-byte big-endian length prefix followed by the payload; each recv reads exactly one framed message. This mirrors the TCP transport so cross-transport message semantics are identical: one send is observed as exactly one recv payload, even though the underlying QUIC stream is a byte stream.

Structsยง

QuicTransport
Connected QUIC transport. Owns the async runtime, the Quinn endpoint, the connection, and the bidirectional stream used for framed messages.
QuicTransportKind
Registry kind for quic, quic4, quic6.