Available on crate feature
ws
only.Expand description
Websocket transport
Structs§
- Header
- Represents a parsed header.
- Header
Map - A set of HTTP headers
- Header
Value - Represents an HTTP header field value.
- Invalid
Uri - An error resulting from a failed attempt to construct a URI.
- Receiver
- Receiving end of WebSocket transport.
- Sender
- Sending end of WebSocket transport.
- Uri
- The URI component of a request.
- Url
- A parsed URL record.
- WsTransport
Client Builder - Builder for a WebSocket transport
Sender
andReceiver
pair.
Enums§
- Certificate
Store - Certificate store to use for TLS connections.
- Either
Stream - Stream to represent either a unencrypted or encrypted socket stream.
- Mode
- Stream mode, either plain TCP or TLS.
- WsError
- Error that can occur when reading or sending messages on an established connection.
- WsHandshake
Error - Error that can happen during the WebSocket handshake.
Traits§
- Async
Read - Reads bytes from a source.
- Async
Write - Writes bytes asynchronously.
Type Aliases§
- Custom
Cert Store - Custom TLS configuration.