Skip to main content

Crate ws_bridge

Crate ws_bridge 

Source

Structs§

WsConnection
A typed WebSocket connection parameterized by send and receive types.
WsReceiver
The receiving half of a typed WebSocket connection.
WsSender
The sending half of a typed WebSocket connection.

Enums§

DecodeError
Error decoding a WebSocket frame into a typed message.
EncodeError
Error encoding a message into a WebSocket frame.
NoMessages
A type representing no messages. Use this as ClientMsg or ServerMsg for endpoints that are unidirectional (e.g., server-push-only streams).
RecvError
Error when receiving a message.
SendError
Error when sending a message.
WsMessage
A WebSocket message — either text or binary.

Traits§

WsCodec
Encode/decode messages to/from WebSocket frames.
WsEndpoint
Defines a WebSocket endpoint — its path, and the message types that flow in each direction.