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