Struct hyper_native_tls::NativeTlsClient
[−]
[src]
pub struct NativeTlsClient { /* fields omitted */ }An SslClient implementation using native-tls.
Methods
impl NativeTlsClient[src]
pub fn new() -> Result<NativeTlsClient>[src]
Returns a NativeTlsClient with a default configuration.
To customize the configuration, build a TlsConnector and then use
NativeTlsClient's From implementation.
pub fn danger_disable_hostname_verification(
&mut self,
disable_verification: bool
)[src]
&mut self,
disable_verification: bool
)
If set, the
TlsConnector::danger_connect_without_providing_domain_for_certificate_verification_and_server_name_indication
method will be used to connect.
Trait Implementations
impl From<TlsConnector> for NativeTlsClient[src]
fn from(t: TlsConnector) -> NativeTlsClient[src]
Performs the conversion.
impl<T> SslClient<T> for NativeTlsClient where
T: NetworkStream + Send + Clone + Debug + Sync, [src]
T: NetworkStream + Send + Clone + Debug + Sync,