Enum fred::types::TlsConnector
source · pub enum TlsConnector {
Native(TlsConnector),
Rustls(TlsConnector),
}Available on crate features
enable-rustls or enable-native-tls or enable-rustls-ring only.Expand description
An enum for interacting with various TLS libraries and interfaces.
Variants§
Native(TlsConnector)
Available on crate feature
enable-native-tls only.Rustls(TlsConnector)
Available on crate features
enable-rustls or enable-rustls-ring only.Implementations§
source§impl TlsConnector
impl TlsConnector
sourcepub fn default_native_tls() -> Result<Self, RedisError>
Available on (crate features enable-native-tls or enable-rustls) and crate feature enable-native-tls only.
pub fn default_native_tls() -> Result<Self, RedisError>
enable-native-tls or enable-rustls) and crate feature enable-native-tls only.Create a default TLS connector from the native-tls module.
sourcepub fn default_rustls() -> Result<Self, RedisError>
Available on (crate features enable-native-tls or enable-rustls) and (crate features enable-rustls or enable-rustls-ring) only.
pub fn default_rustls() -> Result<Self, RedisError>
enable-native-tls or enable-rustls) and (crate features enable-rustls or enable-rustls-ring) only.Create a default TLS connector with the rustls module with safe defaults and system certs via rustls-native-certs.
Trait Implementations§
source§impl Clone for TlsConnector
impl Clone for TlsConnector
source§fn clone(&self) -> TlsConnector
fn clone(&self) -> TlsConnector
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 Debug for TlsConnector
impl Debug for TlsConnector
source§impl From<ClientConfig> for TlsConnector
Available on crate features enable-rustls or enable-rustls-ring only.
impl From<ClientConfig> for TlsConnector
Available on crate features
enable-rustls or enable-rustls-ring only.source§impl From<TlsConnector> for TlsConnector
Available on crate feature enable-native-tls only.
impl From<TlsConnector> for TlsConnector
Available on crate feature
enable-native-tls only.source§impl From<TlsConnector> for TlsConnector
Available on crate feature enable-native-tls only.
impl From<TlsConnector> for TlsConnector
Available on crate feature
enable-native-tls only.source§fn from(connector: TokioNativeTlsConnector) -> Self
fn from(connector: TokioNativeTlsConnector) -> Self
Converts to this type from the input type.
source§impl From<TlsConnector> for TlsConnector
Available on crate features enable-rustls or enable-rustls-ring only.
impl From<TlsConnector> for TlsConnector
Available on crate features
enable-rustls or enable-rustls-ring only.source§impl PartialEq for TlsConnector
impl PartialEq for TlsConnector
source§impl TryFrom<TlsConnectorBuilder> for TlsConnector
Available on crate feature enable-native-tls only.
impl TryFrom<TlsConnectorBuilder> for TlsConnector
Available on crate feature
enable-native-tls only.impl Eq for TlsConnector
Auto Trait Implementations§
impl Freeze for TlsConnector
impl !RefUnwindSafe for TlsConnector
impl Send for TlsConnector
impl Sync for TlsConnector
impl Unpin for TlsConnector
impl !UnwindSafe for TlsConnector
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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