Struct futures_rustls::TlsConnector [−][src]
pub struct TlsConnector { /* fields omitted */ }Expand description
A wrapper around a rustls::ClientConfig, providing an async connect method.
Implementations
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
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for TlsConnector
impl Send for TlsConnector
impl Sync for TlsConnector
impl Unpin for TlsConnector
impl !UnwindSafe for TlsConnector
Blanket Implementations
Mutably borrows from an owned value. Read more