[][src]Trait tls_api::TlsConnector

pub trait TlsConnector: Sized + Sync + Send + 'static {
    type Builder: TlsConnectorBuilder<Connector = Self>;
    fn builder() -> Result<Self::Builder>;
fn connect<'a, S>(
        &'a self,
        domain: &'a str,
        stream: S
    ) -> Pin<Box<dyn Future<Output = Result<TlsStream<S>>> + Send + 'a>>
    where
        S: AsyncRead + AsyncWrite + Debug + Unpin + Send + Sync + 'static
; fn supports_alpn() -> bool { ... } }

A builder for client-side TLS connections.

Associated Types

type Builder: TlsConnectorBuilder<Connector = Self>

Loading content...

Required methods

fn builder() -> Result<Self::Builder>

fn connect<'a, S>(
    &'a self,
    domain: &'a str,
    stream: S
) -> Pin<Box<dyn Future<Output = Result<TlsStream<S>>> + Send + 'a>> where
    S: AsyncRead + AsyncWrite + Debug + Unpin + Send + Sync + 'static, 

Loading content...

Provided methods

Loading content...

Implementors

Loading content...