Skip to main content

Module transport

Module transport 

Source
Expand description

Transport abstraction for QUIC and WebTransport.

Uses enum dispatch (not trait objects) since the transport set is closed. WebTransport support is behind the webtransport feature flag. Nothing here is per-draft; every draft’s connection is carried over the same two.

Re-exports§

pub use quic::dial_quic;
pub use quic::DialError;
pub use quic::QuicDialOptions;

Modules§

quic
QUIC transport implementation wrapping quinn.

Enums§

RecvStream
A transport-agnostic receive stream.
SendStream
A transport-agnostic send stream.
Transport
A transport-agnostic connection (QUIC or WebTransport).
TransportError
Errors from the transport layer.

Functions§

stopped_outcome 🔒
Map quinn’s stopped() result onto TransportError.
varint_code 🔒
Convert an application error code to a quinn VarInt.