[][src]Trait tls_api::TlsConnector

pub trait TlsConnector: Sized + Sync + Send + 'static {
    type Builder: TlsConnectorBuilder<Connector = Self>;
    fn builder() -> Result<Self::Builder>;
fn connect<S>(
        &self,
        domain: &str,
        stream: S
    ) -> Result<TlsStream<S>, HandshakeError<S>>
    where
        S: Read + Write + Debug + 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<S>(
    &self,
    domain: &str,
    stream: S
) -> Result<TlsStream<S>, HandshakeError<S>> where
    S: Read + Write + Debug + Send + Sync + 'static, 

Loading content...

Provided methods

Loading content...

Implementors

Loading content...