Crate web_transport

Source
Expand description

A generic WebTransport interface.

The underlying implementation switches based on the platform:

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.
ClientBuilder
Create a Client that can be used to dial multiple Sessions.
RecvStream
An incoming stream of bytes from the peer.
SendStream
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§

CongestionControl
Allows specifying a class of congestion control algorithm.
Error
A WebTransport error.