Crate web_transport

source ·
Expand description

A generic WebTransport interface.

The underlying implementation switches based on the platform:

Currently, you have to use either of those traits to accept (server) or create (client) a session. Then you can use Session::from() to cast to this generic interface.

Structs§

  • An incoming stream of bytes from the peer.
  • An outgoing stream of bytes to the peer.
  • A WebTransport Session, able to accept/create streams and send/recv datagrams.

Type Aliases§