pub struct MakeTlsConnector(/* private fields */);Available on crate feature
runtime only.Expand description
MakeTlsConnect based on tokio_rustls::TlsConnector.
Implementations§
Source§impl MakeTlsConnector
impl MakeTlsConnector
Sourcepub const fn new(connector: TlsConnector) -> Self
pub const fn new(connector: TlsConnector) -> Self
Constructs Self based on connector.
Trait Implementations§
Source§impl Clone for MakeTlsConnector
impl Clone for MakeTlsConnector
Source§fn clone(&self) -> MakeTlsConnector
fn clone(&self) -> MakeTlsConnector
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S: AsyncRead + AsyncWrite + Unpin> MakeTlsConnect<S> for MakeTlsConnector
impl<S: AsyncRead + AsyncWrite + Unpin> MakeTlsConnect<S> for MakeTlsConnector
Source§type TlsConnect = TlsConnector<'static>
type TlsConnect = TlsConnector<'static>
The
TlsConnect implementation created by this type.Source§type Error = InvalidDnsNameError
type Error = InvalidDnsNameError
The error type returned by the
TlsConnect implementation.Source§fn make_tls_connect(
&mut self,
domain: &str,
) -> Result<Self::TlsConnect, Self::Error>
fn make_tls_connect( &mut self, domain: &str, ) -> Result<Self::TlsConnect, Self::Error>
Creates a new
TlsConnector. Read moreAuto Trait Implementations§
impl Freeze for MakeTlsConnector
impl !RefUnwindSafe for MakeTlsConnector
impl Send for MakeTlsConnector
impl Sync for MakeTlsConnector
impl Unpin for MakeTlsConnector
impl !UnwindSafe for MakeTlsConnector
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