Struct redis::ConnectionInfo
source · [−]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
sourceimpl Clone for ConnectionInfo
impl Clone for ConnectionInfo
sourcefn clone(&self) -> ConnectionInfo
fn clone(&self) -> ConnectionInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ConnectionInfo
impl Debug for ConnectionInfo
sourceimpl FromStr for ConnectionInfo
impl FromStr for ConnectionInfo
sourceimpl IntoConnectionInfo for ConnectionInfo
impl IntoConnectionInfo for ConnectionInfo
sourcefn into_connection_info(self) -> RedisResult<ConnectionInfo>
fn into_connection_info(self) -> RedisResult<ConnectionInfo>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more