Trait TlsProvider

Source
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.

Required Methods§

Source

fn connect( &self, server_name: String, transport: Box<dyn TlsTransport>, ) -> Pin<Box<dyn Future<Output = Result<Box<dyn TlsStream>>> + Send>>

Set up a client TLS connection using the provided server_name and transport.

Implementors§