Expand description
tokio
integration.
Structs§
- Tokio
Adapter - Adapter for
tokio::io::AsyncRead
andtokio::io::AsyncWrite
to provide the variants from thefutures
crate and the other way around.
Functions§
- accept_
async - Accepts a new WebSocket connection with the provided stream.
- accept_
async_ with_ config - The same as
accept_async()
but the one can specify a websocket configuration. Please refer toaccept_async()
for more details. - accept_
hdr_ async - Accepts a new WebSocket connection with the provided stream.
- accept_
hdr_ async_ with_ config - The same as
accept_hdr_async()
but the one can specify a websocket configuration. Please refer toaccept_hdr_async()
for more details. - client_
async - Creates a WebSocket handshake from a request and a stream.
For convenience, the user may call this with a url string, a URL,
or a
Request
. Calling withRequest
allows the user to add a WebSocket protocol or other custom headers. - client_
async_ tls - Creates a WebSocket handshake from a request and a stream, upgrading the stream to TLS if required.
- client_
async_ tls_ with_ config - Creates a WebSocket handshake from a request and a stream, upgrading the stream to TLS if required and using the given WebSocket configuration.
- client_
async_ tls_ with_ connector - Creates a WebSocket handshake from a request and a stream, upgrading the stream to TLS if required and using the given connector.
- client_
async_ tls_ with_ connector_ and_ config - Creates a WebSocket handshake from a request and a stream, upgrading the stream to TLS if required and using the given connector and WebSocket configuration.
- client_
async_ with_ config - The same as
client_async()
but the one can specify a websocket configuration. Please refer toclient_async()
for more details. - connect_
async - Connect to a given URL.
- connect_
async_ with_ config - Connect to a given URL with a given WebSocket configuration.
- connect_
async_ with_ tls_ connector - Connect to a given URL using the provided TLS connector.
- connect_
async_ with_ tls_ connector_ and_ config - Connect to a given URL using the provided TLS connector.
Type Aliases§
- Client
Stream - Type alias for the stream type of the
client_async()
functions. - Connect
Stream - Type alias for the stream type of the
connect_async()
functions.