Struct redis::sentinel::SentinelNodeConnectionInfo
source · pub struct SentinelNodeConnectionInfo {
pub tls_mode: Option<TlsMode>,
pub redis_connection_info: Option<RedisConnectionInfo>,
}
Expand description
Holds the connection information that a sentinel should use when connecting to the servers (masters and replicas) belonging to it.
Fields§
§tls_mode: Option<TlsMode>
The TLS mode of the connection, or None if we do not want to connect using TLS (just a plain TCP connection).
redis_connection_info: Option<RedisConnectionInfo>
The Redis specific/connection independent information to be used.
Trait Implementations§
source§impl Clone for SentinelNodeConnectionInfo
impl Clone for SentinelNodeConnectionInfo
source§fn clone(&self) -> SentinelNodeConnectionInfo
fn clone(&self) -> SentinelNodeConnectionInfo
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 &SentinelNodeConnectionInfo
impl Default for &SentinelNodeConnectionInfo
source§impl Default for SentinelNodeConnectionInfo
impl Default for SentinelNodeConnectionInfo
source§fn default() -> SentinelNodeConnectionInfo
fn default() -> SentinelNodeConnectionInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for SentinelNodeConnectionInfo
impl Send for SentinelNodeConnectionInfo
impl Sync for SentinelNodeConnectionInfo
impl Unpin for SentinelNodeConnectionInfo
impl UnwindSafe for SentinelNodeConnectionInfo
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