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§
- Mock
Transport - Mock transport for unit testing.
- Tungstenite
Transport - WebSocket transport using
tokio-tungstenite.
Enums§
- Frame
Payload - What one WebSocket message means to the session loop.
- Mock
Transport Error - Errors from the
MockTransport. - Tungstenite
Error - Errors from the
TungsteniteTransport.
Constants§
- HAS_
TLS_ BACKEND - Whether a TLS backend was compiled in.
wss://andhttps://need one.
Traits§
- Transport
- A bidirectional message transport.
Functions§
- frame_
payload - The bytes a WebSocket message carries for the codec.