Expand description
WebTransport support for Trillium.
This crate provides a WebTransport handler that accepts WebTransport sessions over
HTTP/3, and a WebTransportConnection handle for sending and receiving streams and
datagrams within each session.
WebTransport requires an HTTP/3-capable server adapter configured with a QUIC endpoint and TLS.
Structs§
- Datagram
- A received WebTransport datagram.
- Inbound
Bidi Stream - An inbound bidirectional WebTransport stream opened by the client.
- Inbound
UniStream - An inbound unidirectional WebTransport stream opened by the client.
- Outbound
Bidi Stream - A server-initiated bidirectional WebTransport stream.
- Outbound
UniStream - A server-initiated unidirectional WebTransport stream.
- WebTransport
- A Trillium
Handlerthat accepts WebTransport sessions. - WebTransport
Connection - A handle to an active WebTransport session.
Enums§
- Inbound
Stream - An inbound WebTransport stream, yielded by
WebTransportConnection::accept_next_stream.
Traits§
- WebTransport
Handler - A handler for WebTransport sessions.