Trait tor_rtcompat::TlsProvider[][src]

pub trait TlsProvider {
    type Connector: TlsConnector<Conn = Self::TlsStream> + Send + Sync + Unpin;
    type TlsStream: AsyncRead + AsyncWrite + CertifiedConn + Unpin + Send + 'static;
    fn tls_connector(&self) -> Self::Connector;
}
Expand description

Trait for a runtime that knows how to create TLS connections.

This is separate from TlsConnector because eventually we may eventually want to support multiple TlsConnector implementations that use a single Runtime.

Associated Types

The Connector object that this provider can return.

The type of the stream returned by that connector.

Required methods

Return a TLS connector for use with this runtime.

Implementors