Expand description
A generic WebTransport interface.
The underlying implementation switches based on the platform:
- native: web-transport-quinn
- web: web-transport-wasm
WASM lacks server support, so for native you first establish a web_transport_quinn::Session and then use Session::from() to cast to this generic interface.
Re-exports§
pub use web_transport_quinn as quinn;
Structs§
- Client
- Used to dial multiple Sessions.
- Client
Builder - Create a Client that can be used to dial multiple Sessions.
- Recv
Stream - An incoming stream of bytes from the peer.
- Send
Stream - An outgoing stream of bytes to the peer.
- Server
- Used to accept incoming connections and create Sessions. (native only)
- Session
- A WebTransport Session, able to accept/create streams and send/recv datagrams.
Enums§
- Congestion
Control - Allows specifying a class of congestion control algorithm.
- Error
- A WebTransport error.