Function async_tungstenite::handshake::handshake
source ยท async fn handshake<Role, F, S>(
stream: S,
f: F,
) -> Result<Role::FinalResult, Error<Role>>where
Role: HandshakeRole + Unpin,
Role::InternalStream: SetWaker + Unpin,
F: FnOnce(AllowStd<S>) -> Result<Role::FinalResult, HandshakeError<Role>> + Unpin,
S: AsyncRead + AsyncWrite + Unpin,