Enum fred::types::TlsHostMapping
source · pub enum TlsHostMapping {
None,
DefaultHost,
Custom(Arc<dyn HostMapping>),
}Available on crate features
enable-rustls or enable-native-tls or enable-rustls-ring only.Expand description
Variants§
None
Do not modify or replace hostnames or IP addresses in the CLUSTER SLOTS response.
Default
DefaultHost
Replace any IP addresses in the CLUSTER SLOTS response with the hostname of the node that returned
the CLUSTER SLOTS response.
If the CLUSTER SLOTS response contains hostnames alongside IP addresses (via the metadata block) then
those hostnames will be used instead. However, this is a relatively new Redis feature and it’s likely some
configurations will not expose this information.
Custom(Arc<dyn HostMapping>)
Provide a custom mapping from IP address to hostname to be used in a manner similar to a reverse DNS lookup.
Trait Implementations§
source§impl Clone for TlsHostMapping
impl Clone for TlsHostMapping
source§fn clone(&self) -> TlsHostMapping
fn clone(&self) -> TlsHostMapping
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 TlsHostMapping
impl Debug for TlsHostMapping
source§impl PartialEq for TlsHostMapping
impl PartialEq for TlsHostMapping
impl Eq for TlsHostMapping
Auto Trait Implementations§
impl Freeze for TlsHostMapping
impl !RefUnwindSafe for TlsHostMapping
impl Send for TlsHostMapping
impl Sync for TlsHostMapping
impl Unpin for TlsHostMapping
impl !UnwindSafe for TlsHostMapping
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