Skip to main content

Crate webtrans_proto

Crate webtrans_proto 

Source
Expand description

WebTransport protocol primitives shared across webtrans transports.

Structs§

ConnectRequest
Decoded WebTransport CONNECT request metadata.
ConnectResponse
Decoded WebTransport CONNECT response metadata.
Frame
HTTP/3 frame type identifier.
Setting
HTTP/3 SETTINGS identifier.
Settings
Parsed HTTP/3 settings map keyed by Setting.
UniStream
Sent as the leading bytes on a unidirectional stream to indicate its stream type.
VarInt
An integer less than 2^62.
VarIntBoundsExceeded
Error returned when constructing a VarInt from a value >= 2^62.
VarIntUnexpectedEnd
Error returned when a varint decode reaches EOF before all bytes are available.

Enums§

Capsule
WebTransport HTTP/3 capsule payloads.
CapsuleError
Errors returned by capsule encoding and decoding.
ConnectError
Errors returned while encoding or decoding WebTransport CONNECT messages.
Error
Error categories that can occur when using WebTransport.
SettingsError
Errors returned while encoding or decoding SETTINGS exchanges.

Functions§

error_from_http3
Map an HTTP/3 application error code into WebTransport error space.
error_to_http3
Map a WebTransport application error code into the reserved HTTP/3 space.

Type Aliases§

Result
Convenience result type for WebTransport protocol and transport operations.