Expand description

tokio integration.

Structs§

  • Adapter for tokio::io::AsyncRead and tokio::io::AsyncWrite to provide the variants from the futures crate and the other way around.

Functions§

  • Accepts a new WebSocket connection with the provided stream.
  • The same as accept_async() but the one can specify a websocket configuration. Please refer to accept_async() for more details.
  • Accepts a new WebSocket connection with the provided stream.
  • The same as accept_hdr_async() but the one can specify a websocket configuration. Please refer to accept_hdr_async() for more details.
  • 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 with Request allows the user to add a WebSocket protocol or other custom headers.
  • Creates a WebSocket handshake from a request and a stream, upgrading the stream to TLS if required.
  • Creates a WebSocket handshake from a request and a stream, upgrading the stream to TLS if required and using the given WebSocket configuration.
  • Creates a WebSocket handshake from a request and a stream, upgrading the stream to TLS if required and using the given connector.
  • 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.
  • The same as client_async() but the one can specify a websocket configuration. Please refer to client_async() for more details.
  • Connect to a given URL.
  • Connect to a given URL with a given WebSocket configuration.
  • Connect to a given URL using the provided TLS connector.
  • Connect to a given URL using the provided TLS connector.

Type Aliases§

  • Type alias for the stream type of the client_async() functions.
  • Type alias for the stream type of the connect_async() functions.