Struct tor_rtcompat::tls::NativeTlsProvider
source · #[non_exhaustive]pub struct NativeTlsProvider {}Available on crate feature
native-tls and (crate features tokio or async-std) only.Expand description
A TlsProvider that uses native_tls.
It supports wrapping any reasonable stream type that implements AsyncRead + AsyncWrite.
Trait Implementations§
source§impl Clone for NativeTlsProvider
Available on (crate features native-tls or rustls) and (crate features async-std or tokio) only.
impl Clone for NativeTlsProvider
Available on (crate features
native-tls or rustls) and (crate features async-std or tokio) only.source§fn clone(&self) -> NativeTlsProvider
fn clone(&self) -> NativeTlsProvider
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 Default for NativeTlsProvider
Available on (crate features native-tls or rustls) and (crate features async-std or tokio) only.
impl Default for NativeTlsProvider
Available on (crate features
native-tls or rustls) and (crate features async-std or tokio) only.source§fn default() -> NativeTlsProvider
fn default() -> NativeTlsProvider
Returns the “default value” for a type. Read more
source§impl<S> TlsProvider<S> for NativeTlsProviderwhere
S: AsyncRead + AsyncWrite + Unpin + Send + 'static,
Available on (crate features native-tls or rustls) and (crate features async-std or tokio) only.
impl<S> TlsProvider<S> for NativeTlsProviderwhere
S: AsyncRead + AsyncWrite + Unpin + Send + 'static,
Available on (crate features
native-tls or rustls) and (crate features async-std or tokio) only.