pub struct SentinelNodeConnectionInfo {
pub tls_mode: Option<TlsMode>,
pub redis_connection_info: Option<RedisConnectionInfo>,
}
Expand description
This type is a wrapper for redis::sentinel::SentinelNodeConnectionInfo
for serialize/deserialize/debug.
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 Debug for SentinelNodeConnectionInfo
impl Debug 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
Source§impl<'de> Deserialize<'de> for SentinelNodeConnectionInfo
impl<'de> Deserialize<'de> for SentinelNodeConnectionInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<SentinelNodeConnectionInfo> for SentinelNodeConnectionInfo
impl From<SentinelNodeConnectionInfo> for SentinelNodeConnectionInfo
Source§fn from(info: SentinelNodeConnectionInfo) -> Self
fn from(info: SentinelNodeConnectionInfo) -> Self
Converts to this type from the input type.
Source§impl From<SentinelNodeConnectionInfo> for SentinelNodeConnectionInfo
impl From<SentinelNodeConnectionInfo> for SentinelNodeConnectionInfo
Source§fn from(info: SentinelNodeConnectionInfo) -> Self
fn from(info: SentinelNodeConnectionInfo) -> Self
Converts to this type from the input type.
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