Crate aeronet_wt_native

Crate aeronet_wt_native 

Source
Expand description

§aeronet_wt_native

crates.io docs.rs

A WebTransport transport implementation of aeronet, which uses the QUIC protocol under the hood to provide reliable streams and unreliable datagrams.

This transport can be used in a native app to provide a client and server transport using wtransport as the WebTransport protocol implementation. Using this requires the tokio async runtime.

§Transport

Before a message (of a user-specified type) can be transported along a WebTransport connection, it must first be converted to/from its serialized byte form. This is achieved using aeronet::TryIntoBytes and aeronet::TryFromBytes. The transport will not process the bytes any further than converting the bytes using these functions - the implementation will not do any higher-level functions such as message batching.

Re-exports§

pub use wtransport;

Structs§

ClientKey
Key type used to uniquely identify a client connected to a [WebTransportServer].
EndpointInfo
Statistics on the network state of a Connection managed by an endpoint.
WebTransportClient
Implementation of TransportClient using the WebTransport protocol.
WebTransportServer
Implementation of TransportServer using the WebTransport protocol.

Enums§

ChannelError
Error that occurs while processing a channel, either datagrams or QUIC streams.
ClientEvent
Event raised by a WebTransportClient.
ClientState
The current state of a WebTransportClient.
ServerEvent
Event raised by a WebTransportServer.
WebTransportError
Error that occurs when processing a WebTransport transport implementation.

Traits§

WebTransportProtocol
Extension of TransportProtocol for WebTransport implementations.