Enum redis::ConnectionAddr
[−]
[src]
pub enum ConnectionAddr {
Tcp(String, u16),
Unix(PathBuf),
}Defines the connection address.
Not all connection addresses are supported on all platforms. For instance to connect to a unix socket you need to run this on an operating system that supports them.
Variants
Tcp(String, u16)Format for this is (host, port).
Unix(PathBuf)Format for this is the path to the unix socket.
Methods
impl ConnectionAddr[src]
fn is_supported(&self) -> bool
Trait Implementations
impl Clone for ConnectionAddr[src]
fn clone(&self) -> ConnectionAddr
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Debug for ConnectionAddr[src]
impl PartialEq for ConnectionAddr[src]
fn eq(&self, __arg_0: &ConnectionAddr) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ConnectionAddr) -> bool
This method tests for !=.