[][src]Function async_tungstenite::async_std::client_async_tls

pub async fn client_async_tls<R, S>(
    request: R,
    stream: S
) -> Result<(WebSocketStream<StreamSwitcher<S, TlsStream<S>>>, Response), Error> where
    R: IntoClientRequest + Unpin,
    S: 'static + AsyncRead + AsyncWrite + Unpin,
    StreamSwitcher<S, TlsStream<S>>: Unpin

Creates a WebSocket handshake from a request and a stream, upgrading the stream to TLS if required.