Skip to main content

Module transport

Module transport 

Available on crate features http-backend and http and std only.
Expand description

What HTTP/3 needs from QUIC. h1/h2 are generic over a byte stream, h3 over a Connection, because it takes its streams, flow control and datagrams from QUIC itself.

Structs§

BoxedBiReservation
A BiReservation behind dynamic dispatch, opening S and R streams.
BoxedConnection
A Connection behind dynamic dispatch, for where one type has to carry any transport.
BoxedSendStream
The SendStream of a BoxedConnection.
ClosedStream
The stream was already finished, reset or stopped.
Reversed
Run HTTP/3 in the opposite role of the QUIC connection it wraps: the QUIC client serves HTTP/3 and the QUIC server sends the requests, e.g. for a device behind NAT that dials out.

Enums§

EarlyData
Early data (0-RTT) of a client connection.
ReadError
Why a stream read failed.
SendDatagramError
Why a datagram was not queued.
StoppedError
Why SendStream::stopped ended without a peer code or full acknowledgement.
WriteError
Why a stream write failed.

Traits§

BiReservation
Credit for one bidirectional stream, returned when dropped unopened.
Connection
A QUIC connection carrying HTTP/3.
RecvStream
ReserveBiStreams
Exact stream credit for a multiplexing connection pool, see SendRequest::connection_admission.
SendStream
StreamHandle
Shared control over a stream whose SendStream moved to its writer: abort both directions, or send datagrams bound to the stream.

Type Aliases§

BoxedRecvStream
A receive stream behind dynamic dispatch.
BoxedStreamHandle
A shared stream handle behind dynamic dispatch.