Struct redis::ConnectionInfo [] [src]

pub struct ConnectionInfo {
    pub addr: Box<ConnectionAddr>,
    pub db: i64,
    pub passwd: Option<String>,
}

Holds the connection information that redis should use for connecting.

Fields

addr: Box<ConnectionAddr>

A boxed connection address for where to connect to.

db: i64

The database number to use. This is usually 0.

passwd: Option<String>

Optionally a password that should be used for connection.

Trait Implementations

impl Debug for ConnectionInfo
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for ConnectionInfo
[src]

fn clone(&self) -> ConnectionInfo

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 IntoConnectionInfo for ConnectionInfo
[src]

fn into_connection_info(self) -> RedisResult<ConnectionInfo>