pub async fn accept<F>(
io: Io<F>,
ssl: Ssl,
) -> Result<Io<Layer<SslFilter, F>>, Error>where
F: Filter,Expand description
Installs a TLS filter and completes a server handshake.
Unlike SslAcceptor, the caller provides a prepared Ssl, so per
connection settings such as the certificate can be selected before the
handshake. No handshake timeout or concurrency limit is applied.
Existing I/O filters remain below TLS.
ยงErrors
Returns OpenSSL setup or negotiation errors, transport errors, or
io::ErrorKind::UnexpectedEof if the peer disconnects before completion.