Function tokio_boring::accept

source ·
pub async fn accept<S>(
    acceptor: &SslAcceptor,
    stream: S
) -> Result<SslStream<S>, HandshakeError<S>>
where S: AsyncRead + AsyncWrite + Unpin,
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.