Struct tor_rtcompat::tls::NativeTlsProvider
source · #[non_exhaustive]pub struct NativeTlsProvider {}
Available on (crate features
native-tls
or rustls
) and (crate features async-std
or tokio
) and 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
impl Clone for NativeTlsProvider
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
impl Default for NativeTlsProvider
source§fn default() -> NativeTlsProvider
fn default() -> NativeTlsProvider
Returns the “default value” for a type. Read more
source§impl<S> TlsProvider<S> for NativeTlsProvider
impl<S> TlsProvider<S> for NativeTlsProvider
Auto Trait Implementations§
impl RefUnwindSafe for NativeTlsProvider
impl Send for NativeTlsProvider
impl Sync for NativeTlsProvider
impl Unpin for NativeTlsProvider
impl UnwindSafe for NativeTlsProvider
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more