Struct nex_socket::tls::socket::AsyncTlsConnector
source · pub struct AsyncTlsConnector { /* private fields */ }Expand description
Async TLS connector.
A wrapper around a rustls::ClientConfig
Implementations§
source§impl AsyncTlsConnector
impl AsyncTlsConnector
pub fn connect<IO>( &self, server_name: ServerName<'static>, stream: IO ) -> Connect<IO> ⓘ
pub fn connect_with<IO, F>( &self, server_name: ServerName<'static>, stream: IO, f: F ) -> Connect<IO> ⓘ
Trait Implementations§
source§impl Clone for AsyncTlsConnector
impl Clone for AsyncTlsConnector
source§fn clone(&self) -> AsyncTlsConnector
fn clone(&self) -> AsyncTlsConnector
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 AsyncTlsConnector
impl From<Arc<ClientConfig>> for AsyncTlsConnector
source§fn from(inner: Arc<ClientConfig>) -> AsyncTlsConnector
fn from(inner: Arc<ClientConfig>) -> AsyncTlsConnector
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for AsyncTlsConnector
impl Send for AsyncTlsConnector
impl Sync for AsyncTlsConnector
impl Unpin for AsyncTlsConnector
impl !UnwindSafe for AsyncTlsConnector
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