pub struct TlsConnector {
pub connector: SslConnector,
pub verify_hostname: bool,
}
Fields§
§connector: SslConnector
§verify_hostname: bool
Implementations§
Source§impl TlsConnector
impl TlsConnector
pub fn connect_impl<'a, S>(
&'a self,
domain: &'a str,
stream: S,
) -> impl Future<Output = Result<TlsStream<S>>> + 'awhere
S: AsyncSocket,
Trait Implementations§
Source§impl TlsConnector for TlsConnector
impl TlsConnector for TlsConnector
Source§const IMPLEMENTED: bool = true
const IMPLEMENTED: bool = true
Is it implemented? When
false
all operations return an error. Read moreSource§const SUPPORTS_ALPN: bool = true
const SUPPORTS_ALPN: bool = true
Whether this implementation supports ALPN negotiation.
Source§type Builder = TlsConnectorBuilder
type Builder = TlsConnectorBuilder
Type of the builder for this connector.
Source§type Underlying = SslConnector
type Underlying = SslConnector
Type of the underlying connector.
Source§type TlsStream = TlsStream<AsyncSocketBox>
type TlsStream = TlsStream<AsyncSocketBox>
crate::TlsStream<tls_api::AsyncSocketBox>
. Read moreSource§fn underlying_mut(&mut self) -> &mut Self::Underlying
fn underlying_mut(&mut self) -> &mut Self::Underlying
Get the underlying builder. Read more
Source§fn builder() -> Result<TlsConnectorBuilder>
fn builder() -> Result<TlsConnectorBuilder>
New builder for the acceptor.
Source§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
Source§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
Source§const TYPE_DYN: &'static dyn TlsConnectorType = _
const TYPE_DYN: &'static dyn TlsConnectorType = _
Dynamic (without type parameter) version of the connector. Read more
Source§fn into_dyn(self) -> TlsConnectorBox
fn into_dyn(self) -> TlsConnectorBox
Dynamic (without type parameter) version of the connector.
Source§fn connect_default<S>(
domain: &str,
stream: S,
) -> BoxFuture<'_, Result<TlsStream, Error>>where
S: AsyncSocket,
fn connect_default<S>(
domain: &str,
stream: S,
) -> BoxFuture<'_, Result<TlsStream, Error>>where
S: AsyncSocket,
Connect using default settings. Read more
Auto Trait Implementations§
impl Freeze for TlsConnector
impl RefUnwindSafe for TlsConnector
impl Send for TlsConnector
impl Sync for TlsConnector
impl Unpin for TlsConnector
impl UnwindSafe for TlsConnector
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more