[−][src]Function tokio_tungstenite::client_async_tls
pub fn client_async_tls<R, S>(
request: R,
stream: S
) -> Box<dyn Future<Item = (WebSocketStream<MaybeTlsStream<S>>, Response), Error = Error> + Send> where
R: Into<Request<'static>>,
S: 'static + AsyncRead + AsyncWrite + NoDelay + Send,
Creates a WebSocket handshake from a request and a stream, upgrading the stream to TLS if required.