pub struct SentinelNodeConnectionInfo {
pub tls_mode: Option<TlsMode>,
pub redis_connection_info: Option<RedisConnectionInfo>,
}Available on crate feature
sentinel only.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 duplicate of the value. Read more
1.0.0 (const: unstable) · 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
Available on crate feature serde only.
impl<'de> Deserialize<'de> for SentinelNodeConnectionInfo
Available on crate feature
serde only.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 UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<D> DeserializeWith<JsonFormat> for Dwhere
D: DeserializeOwned,
impl<D> DeserializeWith<JsonFormat> for Dwhere
D: DeserializeOwned,
Source§fn deserialize_with(body: ResponseBody) -> Result<D, Error>
fn deserialize_with(body: ResponseBody) -> Result<D, Error>
Deserialize the response body using the specified format. Read more