pub struct SentinelNodeConnectionInfo { /* private fields */ }Available on crate feature
sentinel only.Expand description
Holds the connection information that a sentinel should use when connecting to the servers (masters and replicas) belonging to it.
Implementations§
Source§impl SentinelNodeConnectionInfo
impl SentinelNodeConnectionInfo
Sourcepub fn set_tls_mode(self, tls_mode: TlsMode) -> Self
pub fn set_tls_mode(self, tls_mode: TlsMode) -> Self
Sets the TLS mode of the connection
Sourcepub fn set_redis_connection_info(
self,
redis_connection_info: RedisConnectionInfo,
) -> Self
pub fn set_redis_connection_info( self, redis_connection_info: RedisConnectionInfo, ) -> Self
Sets the Redis specific/connection independent information to be used, if needed
Trait Implementations§
Source§impl Clone for SentinelNodeConnectionInfo
impl Clone for SentinelNodeConnectionInfo
Source§fn clone(&self) -> SentinelNodeConnectionInfo
fn clone(&self) -> SentinelNodeConnectionInfo
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 &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 Freeze for SentinelNodeConnectionInfo
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