Trait tls_listener::AsyncTls
source · [−]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
Required methods
fn accept(&self, stream: C) -> Self::AcceptFuture
fn accept(&self, stream: C) -> Self::AcceptFuture
Accept a TLS connection on an underlying stream