pub fn new(connector: native_tls::TlsConnector, domain: &str) -> TlsConnector {
        TlsConnector {
            connector: tokio_native_tls::TlsConnector::from(connector),
            domain: domain.to_string(),
        }
    }
/// Creates a new connector configured to connect to the specified domain.
Creates a new connector configured to connect to the specified domain.
Creates a new connector configured to connect to the specified domain .
pub fn new(connector: native_tls::TlsConnector, domain: &str) -> TlsConnector {
        TlsConnector {
            connector: tokio_native_tls::TlsConnector::from(connector),
            domain: domain.to_string(),
        }
    }
pub fn new ( connector : native_tls :: TlsConnector , domain : & str ) -> TlsConnector { TlsConnector { connector : tokio_native_tls :: TlsConnector :: from ( connector ) , domain : domain . to_string ( ) , } }
Creates a new connector configured to connect to the specified domain.
Creates a new connector configured to connect to the specified domain .
connector
native_tls::TlsConnector
domain
&str
connector
native_tls::TlsConnector
domain
&str