pub struct ConnectionInfo { /* private fields */ }Expand description
Holds the connection information that redis should use for connecting.
Implementations§
Source§impl ConnectionInfo
impl ConnectionInfo
Sourcepub fn addr(&self) -> &ConnectionAddr
pub fn addr(&self) -> &ConnectionAddr
Returns the connection address.
Sourcepub fn tcp_settings(&self) -> &TcpSettings
pub fn tcp_settings(&self) -> &TcpSettings
Returns the settings for the TCP connection.
Sourcepub fn redis_settings(&self) -> &RedisConnectionInfo
pub fn redis_settings(&self) -> &RedisConnectionInfo
Returns the redis connection info for how to handshake with redis.
Sourcepub fn set_addr(self, addr: ConnectionAddr) -> Self
pub fn set_addr(self, addr: ConnectionAddr) -> Self
Sets the connection address for where to connect to.
Sourcepub fn set_tcp_settings(self, tcp_settings: TcpSettings) -> Self
pub fn set_tcp_settings(self, tcp_settings: TcpSettings) -> Self
Sets the TCP settings for the connection.
Sourcepub fn set_redis_settings(self, redis: RedisConnectionInfo) -> Self
pub fn set_redis_settings(self, redis: RedisConnectionInfo) -> Self
Set all redis connection info fields at once.
Trait Implementations§
Source§impl Clone for ConnectionInfo
impl Clone for ConnectionInfo
Source§fn clone(&self) -> ConnectionInfo
fn clone(&self) -> ConnectionInfo
Returns a duplicate 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