Trait ConnectConfigurationExt

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

Extension trait for ConnectConfiguration 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 ConnectConfigurationExt for ConnectConfiguration

Source§

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

Implementors§