pub trait AsyncTls<C: AsyncRead + AsyncWrite>: Clone {
    type Stream;
    type Error: Error;
    type AcceptFuture: Future<Output = Result<Self::Stream, Self::Error>>;
    fn accept(&self, stream: C) -> Self::AcceptFuture;
}
Expand description

Trait for TLS implementation.

Implementations are provided by the rustls and native-tls features.

Associated Types

The type of the TLS stream created from the underlying stream.

Error type for completing the TLS handshake

Type of the Future for the TLS stream that is accepted.

Required methods

Accept a TLS connection on an underlying stream

Implementations on Foreign Types

Implementors