pub struct TlsConnector { /* private fields */ }
Expand description
A wrapper around a rustls::ClientConfig
, providing an async connect
method.
Implementations§
Source§impl TlsConnector
impl TlsConnector
pub fn connect<IO>( &self, domain: ServerName<'static>, stream: IO, ) -> Connect<IO> ⓘ
pub fn connect_with<IO, F>( &self, domain: ServerName<'static>, stream: IO, f: F, ) -> Connect<IO> ⓘ
Trait Implementations§
Source§impl Clone for TlsConnector
impl Clone for TlsConnector
Source§fn clone(&self) -> TlsConnector
fn clone(&self) -> TlsConnector
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl From<Arc<ClientConfig>> for TlsConnector
impl From<Arc<ClientConfig>> for TlsConnector
Source§fn from(inner: Arc<ClientConfig>) -> TlsConnector
fn from(inner: Arc<ClientConfig>) -> TlsConnector
Converts to this type from the input type.
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