Struct monoio_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 async fn connect<IO>( &self, domain: ServerName, stream: IO ) -> Result<TlsStream<IO>, TlsError>where IO: AsyncReadRent + AsyncWriteRent,
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.
source§impl From<ClientConfig> for TlsConnector
impl From<ClientConfig> for TlsConnector
source§fn from(inner: ClientConfig) -> TlsConnector
fn from(inner: ClientConfig) -> TlsConnector
Converts to this type from the input type.