Struct tls_api_stub::TlsConnector
source · [−]pub struct TlsConnector(_);
Expand description
Non-instantiatable.
Trait Implementations
sourceimpl TlsConnector for TlsConnector
impl TlsConnector for TlsConnector
type Builder = TlsConnectorBuilder
type Builder = TlsConnectorBuilder
Type of the builder for this connector.
sourceconst IMPLEMENTED: bool = false
const IMPLEMENTED: bool = false
Is it implemented? When false
all operations return an error. Read more
sourceconst SUPPORTS_ALPN: bool = false
const SUPPORTS_ALPN: bool = false
Whether this implementation supports ALPN negotiation.
type Underlying = Void
type Underlying = Void
Type of the underlying connector.
type TlsStream = TlsStream<AsyncSocketBox>
type TlsStream = TlsStream<AsyncSocketBox>
crate::TlsStream<tls_api::AsyncSocketBox>
. Read more
sourcefn underlying_mut(&mut self) -> &mut Self::Underlying
fn underlying_mut(&mut self) -> &mut Self::Underlying
Get the underlying builder. Read more
sourcefn builder() -> Result<TlsConnectorBuilder>
fn builder() -> Result<TlsConnectorBuilder>
New builder for the acceptor.
sourcefn 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
sourcefn 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
sourceconst TYPE_DYN: &'static (dyn TlsConnectorType + 'static) = const TYPE_DYN: &'static dyn TlsConnectorType =
&TlsConnectorTypeImpl::(marker::PhantomData);
const TYPE_DYN: &'static (dyn TlsConnectorType + 'static) = const TYPE_DYN: &'static dyn TlsConnectorType =
&TlsConnectorTypeImpl::(marker::PhantomData);
Dynamic (without type parameter) version of the connector. Read more
sourcefn into_dyn(self) -> TlsConnectorBox
fn into_dyn(self) -> TlsConnectorBox
Dynamic (without type parameter) version of the connector.
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for TlsConnector
impl Send for TlsConnector
impl Sync for TlsConnector
impl Unpin for TlsConnector
impl UnwindSafe for TlsConnector
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more