pub struct ConnectionInfo {
pub addr: ConnectionAddr,
pub redis: RedisConnectionInfo,
}
Expand description
Holds the connection information that redis should use for connecting.
Fields§
§addr: ConnectionAddr
A connection address for where to connect to.
redis: RedisConnectionInfo
A redis connection info for how to handshake with redis.
Trait Implementations§
Source§impl Clone for ConnectionInfo
impl Clone for ConnectionInfo
Source§fn clone(&self) -> ConnectionInfo
fn clone(&self) -> ConnectionInfo
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ConnectionInfo
impl Debug for ConnectionInfo
Source§impl FromStr for ConnectionInfo
impl FromStr for ConnectionInfo
Source§impl IntoConnectionInfo for ConnectionInfo
impl IntoConnectionInfo for ConnectionInfo
Source§fn 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 Freeze for ConnectionInfo
impl RefUnwindSafe for ConnectionInfo
impl Send for ConnectionInfo
impl Sync for ConnectionInfo
impl Unpin for ConnectionInfo
impl UnwindSafe for ConnectionInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more