Skip to main contentCrate ws_bridge
Source - 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.
- 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.
- WsCodec
- Encode/decode messages to/from WebSocket frames.
- WsEndpoint
- Defines a WebSocket endpoint — its path, and the message types
that flow in each direction.