Struct redis::ConnectionInfo [−][src]
pub struct ConnectionInfo { pub addr: Box<ConnectionAddr>, pub db: i64, pub username: Option<String>, pub passwd: Option<String>, }
Expand description
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
.
username: Option<String>
Optionally a username that should be used for connection.
passwd: Option<String>
Optionally a password that should be used for connection.
Trait Implementations
Converts the object into a connection info object.
Auto Trait Implementations
impl RefUnwindSafe for ConnectionInfo
impl Send for ConnectionInfo
impl Sync for ConnectionInfo
impl Unpin for ConnectionInfo
impl UnwindSafe for ConnectionInfo
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V