Struct futures_rustls::TlsConnector [−][src]
pub struct TlsConnector { /* fields omitted */ }
A wrapper around a rustls::ClientConfig
, providing an async connect
method.
Implementations
impl TlsConnector
[src]
impl TlsConnector
[src]pub fn connect<IO>(&self, domain: DNSNameRef<'_>, stream: IO) -> Connect<IO>ⓘ where
IO: AsyncRead + AsyncWrite + Unpin,
[src]
IO: AsyncRead + AsyncWrite + Unpin,
pub fn connect_with<IO, F>(
&self,
domain: DNSNameRef<'_>,
stream: IO,
f: F
) -> Connect<IO>ⓘ where
IO: AsyncRead + AsyncWrite + Unpin,
F: FnOnce(&mut ClientSession),
[src]
&self,
domain: DNSNameRef<'_>,
stream: IO,
f: F
) -> Connect<IO>ⓘ where
IO: AsyncRead + AsyncWrite + Unpin,
F: FnOnce(&mut ClientSession),
Trait Implementations
impl Clone for TlsConnector
[src]
impl Clone for TlsConnector
[src]fn clone(&self) -> TlsConnector
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl From<Arc<ClientConfig>> for TlsConnector
[src]
impl From<Arc<ClientConfig>> for TlsConnector
[src]