Struct actix_storage_redis::ConnectionInfo
source · 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 boxed connection address for where to connect to.
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
§type Err = RedisError
type Err = RedisError
The associated error which can be returned from parsing.
source§fn from_str(s: &str) -> Result<ConnectionInfo, <ConnectionInfo as FromStr>::Err>
fn from_str(s: &str) -> Result<ConnectionInfo, <ConnectionInfo as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moresource§impl IntoConnectionInfo for ConnectionInfo
impl IntoConnectionInfo for ConnectionInfo
source§fn into_connection_info(self) -> Result<ConnectionInfo, RedisError>
fn into_connection_info(self) -> Result<ConnectionInfo, RedisError>
Converts the object into a connection info object.