Struct futures_rustls::TlsConnector
source · 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, stream: IO) -> Connect<IO> ⓘwhere IO: AsyncRead + AsyncWrite + Unpin,
pub fn connect_with<IO, F>( &self, domain: ServerName, stream: IO, f: F ) -> Connect<IO> ⓘwhere IO: AsyncRead + AsyncWrite + Unpin, F: FnOnce(&mut ClientConnection),
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.