Trait tls_api::TlsConnector [] [src]

pub trait TlsConnector: Send + 'static {
    fn connect<S>(
        &self,
        domain: &str,
        stream: S
    ) -> Result<TlsStream<S>, HandshakeError<S>>
    where
        S: Read + Write + Debug + '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 + 'static
; }

Required Methods

Implementors