Function tokio_openssl::accept[][src]

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.