[][src]Function tokio_openssl::accept

pub async fn accept<'_, S>(
    acceptor: &'_ SslAcceptor,
    stream: S
) -> Result<SslStream<S>, HandshakeError<S>> where
    S: AsyncRead + AsyncWrite + Unpin

Asynchronously performs a server-side TLS handshake over the provided stream.