pub async fn accept_connection_async<T: AsyncRecvFrame + AsyncSendFrame + Sync + Send + Unpin + 'static, A: AuthConfig>(
stream: T,
opts: AcceptOptions,
auth: A,
peer: PeerData,
) -> Result<Option<Connection<T>>, Error>Expand description
Takes a freshly accepted connection and performs the server side of a handshake, returning a new low-level connection if the handshake completes successfully.