Struct tls_api_openssl::TlsConnector [−][src]
pub struct TlsConnector {
pub connector: SslConnector,
pub verify_hostname: bool,
}
Fields
connector: SslConnector
verify_hostname: bool
Implementations
pub fn connect_impl<'a, S>(
&'a self,
domain: &'a str,
stream: S
) -> impl Future<Output = Result<TlsStream<S>>> + 'a where
S: AsyncSocket,
Trait Implementations
type Builder = TlsConnectorBuilder
type Builder = TlsConnectorBuilder
Type of the builder for this connector.
type Underlying = SslConnector
type Underlying = SslConnector
Type of the underlying connector.
type TlsStream = TlsStream<AsyncSocketBox>
type TlsStream = TlsStream<AsyncSocketBox>
crate::TlsStream<tls_api::AsyncSocketBox>
. Read more
Get the underlying builder. Read more
Is it implemented? When false
all operations return an error. Read more
Whether this implementation supports ALPN negotiation.
New builder for the acceptor.
fn connect_with_socket<'a, S>(
&'a self,
domain: &'a str,
stream: S
) -> BoxFuture<'a, Result<TlsStreamWithSocket<S>>> where
S: AsyncSocket,
fn connect_with_socket<'a, S>(
&'a self,
domain: &'a str,
stream: S
) -> BoxFuture<'a, Result<TlsStreamWithSocket<S>>> where
S: AsyncSocket,
Connect. Read more
fn connect_impl_tls_stream<'a, S>(
&'a self,
domain: &'a str,
stream: S
) -> BoxFuture<'a, Result<Self::TlsStream>> where
S: AsyncSocket,
fn connect_impl_tls_stream<'a, S>(
&'a self,
domain: &'a str,
stream: S
) -> BoxFuture<'a, Result<Self::TlsStream>> where
S: AsyncSocket,
Connect. Read more
Dynamic (without type parameter) version of the connector. Read more
Dynamic (without type parameter) version of the connector.
fn connect_default<S>(
domain: &'a str,
stream: S
) -> BoxFuture<'a, Result<TlsStream, Error>> where
S: AsyncSocket,
fn connect_default<S>(
domain: &'a str,
stream: S
) -> BoxFuture<'a, Result<TlsStream, Error>> where
S: AsyncSocket,
Connect using default settings. Read more