Expand description
aeronet_io implementation using WebSockets for reliable-ordered data transfer over TCP between peers, compatible with both native and WASM.
This uses tokio-tungstenite on native targets, and web-sys on WASM targets, for WebSocket usage. The server implementation is only available on native targets.
AWS-LC is the default rustls crypto provider. Applications must install their selected provider before building a TLS configuration if default features are disabled or another provider is also enabled.
§Feature flags
-
aws-lc-rs(enabled by default) — Enables theaws-lc-rsrustls crypto provider.Applications must install their selected provider before building a TLS configuration if another provider is also enabled.
-
client— Enables theclientmodule. -
document-features— Enable this when generating docs. -
self-signed(enabled by default) — Allows generating self-signed server certificates usingrcgen. -
server— Enables theservermodule.
Re-exports§
pub use rustls;pub use tokio_tungstenite;pub use tokio_tungstenite::tungstenite;pub use rustls_native_certs;client
Modules§
- client
client - See
WebSocketClient. - server
server - See
WebSocketServer. - session
- Implementation for WebSocket sessions, shared between clients and servers.
Structs§
- WebSocket
Runtime - Provides a platform-agnostic way to spawn futures for driving an
aeronetIO layer.