#[non_exhaustive]pub struct NativeTlsProvider {}Available on crate feature
native-tls and (crate features tokio or async-std or smol) 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 only.
impl Clone for NativeTlsProvider
Available on crate features
native-tls or rustls only.Source§fn clone(&self) -> NativeTlsProvider
fn clone(&self) -> NativeTlsProvider
Returns a duplicate 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 only.
impl Default for NativeTlsProvider
Available on crate features
native-tls or rustls only.Source§fn default() -> NativeTlsProvider
fn default() -> NativeTlsProvider
Returns the “default value” for a type. Read more
Source§impl<S> TlsProvider<S> for NativeTlsProvider
Available on crate features native-tls or rustls only.
impl<S> TlsProvider<S> for NativeTlsProvider
Available on crate features
native-tls or rustls only.Source§type Acceptor = UnimplementedTls
type Acceptor = UnimplementedTls
The Acceptor object that this provider can return, for handling incoming connections.
Source§type TlsServerStream = UnimplementedTls
type TlsServerStream = UnimplementedTls
The type of stream returned by that Acceptor.
Source§fn tls_connector(&self) -> Self::Connector
fn tls_connector(&self) -> Self::Connector
Return a TLS connector for use with this runtime.
Source§fn tls_acceptor(
&self,
_settings: TlsAcceptorSettings,
) -> IoResult<Self::Acceptor>
fn tls_acceptor( &self, _settings: TlsAcceptorSettings, ) -> IoResult<Self::Acceptor>
Return a TLS acceptor for use with this runtime. Read more
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<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more