Module ws

Module ws 

Source
Expand description

Transport abstraction — bidirectional message transport.

The Transport trait defines a pluggable transport layer for sending and receiving raw bytes. The default implementation TungsteniteTransport wraps tokio-tungstenite for WebSocket connectivity. MockTransport enables deterministic unit testing without a network.

Structs§

MockTransport
Mock transport for unit testing.
TungsteniteTransport
WebSocket transport using tokio-tungstenite.

Enums§

MockTransportError
Errors from the MockTransport.
TungsteniteError
Errors from the TungsteniteTransport.

Traits§

Transport
A bidirectional message transport.