Trait tls_api::TlsConnector [] [src]

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 danger_connect_without_providing_domain_for_certificate_verification_and_server_name_indication<S>(
        &self,
        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

Required Methods

Provided Methods

Implementors