Struct fred::types::SentinelConfig
source · pub struct SentinelConfig {
pub host: String,
pub port: u16,
pub username: Option<String>,
pub password: Option<String>,
pub tls: Option<TlsConfig>,
pub tracing: TracingConfig,
}Available on crate feature
sentinel-client only.Expand description
Configuration options for sentinel clients.
Fields§
§host: StringThe hostname for the sentinel node.
Default: 127.0.0.1
port: u16The port on which the sentinel node is listening.
Default: 26379
username: Option<String>An optional ACL username for the client to use when authenticating. If ACL rules are not configured this should
be None.
Default: None
password: Option<String>An optional password for the client to use when authenticating.
Default: None
tls: Option<TlsConfig>Available on crate features
enable-native-tls or enable-rustls or enable-rustls-ring only.TLS configuration fields. If None the connection will not use TLS.
See the tls examples on Github for more information.
Default: None
tracing: TracingConfigAvailable on crate feature
partial-tracing only.Whether to enable tracing for this client.
Default: false
Trait Implementations§
source§impl Clone for SentinelConfig
impl Clone for SentinelConfig
source§fn clone(&self) -> SentinelConfig
fn clone(&self) -> SentinelConfig
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 SentinelConfig
impl Debug for SentinelConfig
Auto Trait Implementations§
impl Freeze for SentinelConfig
impl !RefUnwindSafe for SentinelConfig
impl Send for SentinelConfig
impl Sync for SentinelConfig
impl Unpin for SentinelConfig
impl !UnwindSafe for SentinelConfig
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