pub trait TlsProvider:
Send
+ Sync
+ 'static {
// Required method
fn connect(
&self,
server_name: String,
transport: Box<dyn TlsTransport>,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn TlsStream>>> + Send>>;
}
Expand description
A TLS implementation.