Struct tls_api_rustls::TlsConnector
source · [−]pub struct TlsConnector {
pub config: Arc<ClientConfig>,
}
Fields
config: Arc<ClientConfig>
Implementations
sourceimpl TlsConnector
impl TlsConnector
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
sourceimpl TlsConnector for TlsConnector
impl TlsConnector for TlsConnector
type Builder = TlsConnectorBuilder
type Builder = TlsConnectorBuilder
Type of the builder for this connector.
type Underlying = Arc<ClientConfig>
type Underlying = Arc<ClientConfig>
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
sourceconst IMPLEMENTED: bool = true
const IMPLEMENTED: bool = true
Is it implemented? When false
all operations return an error. Read more
sourceconst SUPPORTS_ALPN: bool = true
const SUPPORTS_ALPN: bool = true
Whether this implementation supports ALPN negotiation.
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