#[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
Source§fn tls_connector(&self) -> Self::Connector
fn tls_connector(&self) -> Self::Connector
Return a TLS connector for use with this runtime.
Source§fn supports_keying_material_export(&self) -> bool
fn supports_keying_material_export(&self) -> bool
Return true iff the keying material exporters (RFC 5705) is supported.
Auto Trait Implementations§
impl Freeze for NativeTlsProvider
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