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::dial_quic_to;
pub use quic::show_cipher_suite;
pub use quic::CertificateHook;
pub use quic::CertificateLog;
pub use quic::DialError;
pub use quic::DialPhase;
pub use quic::QuicDialOptions;
pub use quic::QuicTarget;
pub use quic::TLS13_CIPHER_SUITES;

Modules§

quic
QUIC transport implementation wrapping quinn.

Structs§

HandshakeFailure
A handshake that failed, with the codes the failure carried still intact.

Enums§

CodeSpace
Which number space a QUIC error code belongs to.
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.