accept

Function accept 

pub async fn accept<S>(
    acceptor: &SslAcceptor,
    stream: S,
) -> Result<SslStream<S>, HandshakeError<S>>
where S: AsyncRead + AsyncWrite + Unpin,
Available on (crate features rustls or boring or acme) and crate feature boring only.
Expand description

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

This function automatically sets the task waker on the Ssl from config to allow to make use of async callbacks provided by the boring crate.