Function async_tungstenite::handshake::client_handshake
source ยท pub(crate) async fn client_handshake<F, S>(
stream: S,
f: F,
) -> Result<(WebSocketStream<S>, Response), Error<ClientHandshake<AllowStd<S>>>>where
F: FnOnce(AllowStd<S>) -> Result<<ClientHandshake<AllowStd<S>> as HandshakeRole>::FinalResult, HandshakeError<ClientHandshake<AllowStd<S>>>> + Unpin,
S: AsyncRead + AsyncWrite + Unpin,