Enum redis::ConnectionAddr[][src]

pub enum ConnectionAddr {
    Tcp(Stringu16),
    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

Format for this is (host, port).

Format for this is the path to the unix socket.

Methods

impl ConnectionAddr
[src]

Trait Implementations

impl Clone for ConnectionAddr
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ConnectionAddr
[src]

Formats the value using the given formatter. Read more

impl PartialEq for ConnectionAddr
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations