Struct TlsConnector

Source
pub struct TlsConnector {
    pub connector: SslConnector,
    pub verify_hostname: bool,
}

Fields§

§connector: SslConnector§verify_hostname: bool

Implementations§

Source§

impl TlsConnector

Source

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§

Source§

impl TlsConnector for TlsConnector

Source§

const IMPLEMENTED: bool = true

Is it implemented? When false all operations return an error. Read more
Source§

const SUPPORTS_ALPN: bool = true

Whether this implementation supports ALPN negotiation.
Source§

type Builder = TlsConnectorBuilder

Type of the builder for this connector.
Source§

type Underlying = SslConnector

Type of the underlying connector.
Source§

type TlsStream = TlsStream<AsyncSocketBox>

crate::TlsStream<tls_api::AsyncSocketBox>. Read more
Source§

fn underlying_mut(&mut self) -> &mut Self::Underlying

Get the underlying builder. Read more
Source§

fn info() -> ImplInfo

Implementation info.
Source§

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,

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,

Connect. Read more
Source§

const TYPE_DYN: &'static dyn TlsConnectorType = _

Dynamic (without type parameter) version of the connector. Read more
Source§

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,

Connect using default settings. Read more
Source§

fn connect<'a, S>( &'a self, domain: &'a str, stream: S, ) -> BoxFuture<'a, Result<TlsStream, Error>>
where S: AsyncSocket,

Connect. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.