Trait SslConnectorExt

Source
pub trait SslConnectorExt {
    // Required method
    fn connect_async<S: AsyncRead + AsyncWrite>(
        &self,
        domain: &str,
        stream: S,
    ) -> ConnectAsync<S> ;
}
Expand description

Extension trait for SslConnector to allow connections to be initiated asynchronously.

Required Methods§

Source

fn connect_async<S: AsyncRead + AsyncWrite>( &self, domain: &str, stream: S, ) -> ConnectAsync<S>

Asynchronously initiate the SSL connection

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl SslConnectorExt for SslConnector

Source§

fn connect_async<S: AsyncRead + AsyncWrite>( &self, domain: &str, stream: S, ) -> ConnectAsync<S>

Implementors§