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]
impl Clone for ConnectionInfofn clone(&self) -> ConnectionInfo[src]
fn clone(&self) -> ConnectionInfoReturns 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 ConnectionInfo[src]
impl Debug for ConnectionInfofn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl IntoConnectionInfo for ConnectionInfo[src]
impl IntoConnectionInfo for ConnectionInfofn into_connection_info(self) -> RedisResult<ConnectionInfo>[src]
fn into_connection_info(self) -> RedisResult<ConnectionInfo>Auto Trait Implementations
impl Send for ConnectionInfo
impl Send for ConnectionInfoimpl Sync for ConnectionInfo
impl Sync for ConnectionInfo