Enum redis::ConnectionAddr [−][src]
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]
impl ConnectionAddr
pub fn is_supported(&self) -> bool
[src]
pub fn is_supported(&self) -> bool
Trait Implementations
impl Clone for ConnectionAddr
[src]
impl Clone for ConnectionAddr
fn clone(&self) -> ConnectionAddr
[src]
fn clone(&self) -> ConnectionAddr
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for ConnectionAddr
[src]
impl Debug for ConnectionAddr
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for ConnectionAddr
[src]
impl PartialEq for ConnectionAddr
fn eq(&self, other: &ConnectionAddr) -> bool
[src]
fn eq(&self, other: &ConnectionAddr) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ConnectionAddr) -> bool
[src]
fn ne(&self, other: &ConnectionAddr) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for ConnectionAddr
impl Send for ConnectionAddr
impl Sync for ConnectionAddr
impl Sync for ConnectionAddr