Trait tls_api::TlsConnector
[−]
[src]
pub trait TlsConnector: Sized + Sync + Send + 'static { type Builder: TlsConnectorBuilder<Connector = Self>; type Certificate: Certificate; 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; }
Associated Types
type Builder: TlsConnectorBuilder<Connector = Self>
type Certificate: Certificate
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,
&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,
&self,
stream: S
) -> Result<TlsStream<S>, HandshakeError<S>> where
S: Read + Write + Debug + Send + Sync + 'static,