Trait IntoConnectionInfo

Source
pub trait IntoConnectionInfo {
    // Required method
    fn into_connection_info(self) -> RedisResult<ConnectionInfo>;
}
Expand description

Converts an object into a connection info struct. This allows the constructor of the client to accept connection information in a range of different formats.

Required Methods§

Source

fn into_connection_info(self) -> RedisResult<ConnectionInfo>

Converts the object into a connection info object.

Implementations on Foreign Types§

Source§

impl IntoConnectionInfo for String

Source§

impl IntoConnectionInfo for Url

Source§

impl<'a> IntoConnectionInfo for &'a str

Source§

impl<T> IntoConnectionInfo for (T, u16)
where T: Into<String>,

Implementors§