pub trait TlsConnector: Send + Sync {
// Required method
fn connect(
&self,
dns_name: &str,
io: Box<dyn ReadWrite>,
) -> Result<Box<dyn ReadWrite>, Error>;
}
Required Methods§
fn connect( &self, dns_name: &str, io: Box<dyn ReadWrite>, ) -> Result<Box<dyn ReadWrite>, Error>
Implementations on Foreign Types§
Source§impl TlsConnector for Arc<ClientConfig>
Available on crate feature tls
only.
impl TlsConnector for Arc<ClientConfig>
Available on crate feature
tls
only.Source§impl TlsConnector for TlsConnector
Available on crate feature native-tls
only.
impl TlsConnector for TlsConnector
Available on crate feature
native-tls
only.