Crate webtransport_quinn
source ·Expand description
Renamed to web_transport_quinn
.
Structs§
- An error indicating the stream was already closed.
- A stream that can be used to recieve bytes. See
quinn::RecvStream
. - A mostly complete WebTransport handshake, just awaiting the server’s decision on whether to accept or reject the session based on the URL.
- A stream that can be used to send bytes. See
quinn::SendStream
. - An established WebTransport session, acting like a full QUIC connection. See
quinn::Connection
.
Enums§
- An error returned when connecting to a WebTransport endpoint.
- An error when reading from
crate::RecvStream
. Similar toquinn::ReadError
. - An error returned by
crate::RecvStream::read_exact
. Similar toquinn::ReadExactError
. - An error returned by
crate::RecvStream::read_to_end
. Similar toquinn::ReadToEndError
. - An error returned when receiving a new WebTransport session.
- An errors returned by
crate::Session
, split based on if they are underlying QUIC errors or WebTransport errors. - An error returned by
crate::SendStream::stopped
. Similar toquinn::StoppedError
. - An error that can occur when reading/writing the WebTransport stream header.
- An error when writing to
crate::SendStream
. Similar toquinn::WriteError
.
Constants§
- The HTTP/3 ALPN is required when negotiating a QUIC connection.
Functions§
- Accept a new WebTransport session from a client. Returns a
Request
which is then used to accept or reject the session based on the URL. - Connect to a WebTransport server at the given URL. The UR: must be of the form
https://host:port/path
or else the server will reject it. Returns aSession
which is a wrapper overquinn::Connection
. - Connect using an established QUIC connection if you want to create the connection yourself. This will only work with a brand new QUIC connection using the HTTP/3 ALPN.