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 ConnectionAddrpub fn is_supported(&self) -> bool[src]
pub fn is_supported(&self) -> boolTrait Implementations
impl Clone for ConnectionAddr[src]
impl Clone for ConnectionAddrfn clone(&self) -> ConnectionAddr[src]
fn clone(&self) -> ConnectionAddrReturns 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 ConnectionAddrfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for ConnectionAddr[src]
impl PartialEq for ConnectionAddrfn eq(&self, other: &ConnectionAddr) -> bool[src]
fn eq(&self, other: &ConnectionAddr) -> boolThis 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) -> boolThis method tests for !=.
Auto Trait Implementations
impl Send for ConnectionAddr
impl Send for ConnectionAddrimpl Sync for ConnectionAddr
impl Sync for ConnectionAddr