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 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