Trait MakeTlsConnect

Source
pub trait MakeTlsConnect<S> {
    type Stream: TlsStream + Unpin;
    type TlsConnect: TlsConnect<S, Stream = Self::Stream>;
    type Error: Into<Box<dyn Error + Sync + Send>>;

    // Required method
    fn make_tls_connect(
        &mut self,
        domain: &str,
    ) -> Result<Self::TlsConnect, Self::Error>;
}
Expand description

A constructor of TlsConnectors.

Requires the runtime Cargo feature (enabled by default).

Required Associated Types§

Source

type Stream: TlsStream + Unpin

The stream type created by the TlsConnect implementation.

Source

type TlsConnect: TlsConnect<S, Stream = Self::Stream>

The TlsConnect implementation created by this type.

Source

type Error: Into<Box<dyn Error + Sync + Send>>

The error type returned by the TlsConnect implementation.

Required Methods§

Source

fn make_tls_connect( &mut self, domain: &str, ) -> Result<Self::TlsConnect, Self::Error>

Creates a new TlsConnector.

The domain name is provided for certificate verification and SNI.

Implementors§

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy