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