[−][src]Trait tls_api::TlsConnector
A builder for client-side TLS connections.
Associated Types
type Builder: TlsConnectorBuilder<Connector = Self>
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,
&'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,