Enum deadpool_redis::ConnectionAddr
source · pub enum ConnectionAddr {
Tcp(String, u16),
TcpTls {
host: String,
port: u16,
insecure: bool,
},
Unix(PathBuf),
}
Expand description
This is a 1:1 copy of the redis::ConnectionAddr
enumeration.
This is duplicated here in order to add support for the
serde::Deserialize
trait which is required for the serde
support.
Variants§
Tcp(String, u16)
Format for this is (host, port)
.
TcpTls
Fields
§
insecure: bool
Disable hostname verification when connecting.
Warning
You should think very carefully before you use this method. If hostname verification is not used, any valid certificate for any site will be trusted for use from any other. This introduces a significant vulnerability to man-in-the-middle attacks.
Format for this is (host, port)
.
Unix(PathBuf)
Format for this is the path to the unix socket.
Trait Implementations§
source§impl Clone for ConnectionAddr
impl Clone for ConnectionAddr
source§fn clone(&self) -> ConnectionAddr
fn clone(&self) -> ConnectionAddr
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 ConnectionAddr
impl Debug for ConnectionAddr
source§impl Default for ConnectionAddr
impl Default for ConnectionAddr
source§impl<'de> Deserialize<'de> for ConnectionAddr
impl<'de> Deserialize<'de> for ConnectionAddr
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<ConnectionAddr> for ConnectionAddr
impl From<ConnectionAddr> for ConnectionAddr
source§fn from(addr: ConnectionAddr) -> Self
fn from(addr: ConnectionAddr) -> Self
Converts to this type from the input type.
source§impl From<ConnectionAddr> for ConnectionAddr
impl From<ConnectionAddr> for ConnectionAddr
source§fn from(addr: ConnectionAddr) -> Self
fn from(addr: ConnectionAddr) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for ConnectionAddr
impl Send for ConnectionAddr
impl Sync for ConnectionAddr
impl Unpin for ConnectionAddr
impl UnwindSafe for ConnectionAddr
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