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§
- Boxed
BiReservation - A
BiReservationbehind dynamic dispatch, openingSandRstreams. - Boxed
Connection - A
Connectionbehind dynamic dispatch, for where one type has to carry any transport. - Boxed
Send Stream - The
SendStreamof aBoxedConnection. - Closed
Stream - 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§
- Early
Data - Early data (0-RTT) of a client connection.
- Read
Error - Why a stream read failed.
- Send
Datagram Error - Why a datagram was not queued.
- Stopped
Error - Why
SendStream::stoppedended without a peer code or full acknowledgement. - Write
Error - Why a stream write failed.
Traits§
- BiReservation
- Credit for one bidirectional stream, returned when dropped unopened.
- Connection
- A QUIC connection carrying HTTP/3.
- Recv
Stream - Reserve
BiStreams - Exact stream credit for a multiplexing connection pool, see
SendRequest::connection_admission. - Send
Stream - Stream
Handle - Shared control over a stream whose
SendStreammoved to its writer: abort both directions, or send datagrams bound to the stream.
Type Aliases§
- Boxed
Recv Stream - A receive stream behind dynamic dispatch.
- Boxed
Stream Handle - A shared stream handle behind dynamic dispatch.