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

A boxed connection address for where to connect to.

db

The database number to use. This is usually 0.

passwd

Optionally a password that should be used for connection.

Trait Implementations

impl IntoConnectionInfo for ConnectionInfo

fn into_connection_info(self) -> RedisResult<ConnectionInfo>

Derived Implementations

impl Debug for ConnectionInfo

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

impl Clone for ConnectionInfo

fn clone(&self) -> ConnectionInfo

1.0.0fn clone_from(&mut self, source: &Self)