Struct r2d2_redis_cluster::RedisClusterConnectionManager [−][src]
pub struct RedisClusterConnectionManager { /* fields omitted */ }
An r2d2::ConnectionManager
for redis_cluster_rs::Client
.
Methods
impl RedisClusterConnectionManager
[src]
impl RedisClusterConnectionManager
pub fn new<T: IntoConnectionInfo>(
input_nodes: Vec<T>
) -> RedisResult<RedisClusterConnectionManager>
[src]
pub fn new<T: IntoConnectionInfo>(
input_nodes: Vec<T>
) -> RedisResult<RedisClusterConnectionManager>
Create new RedisClusterConnectionManager
.
Trait Implementations
impl Debug for RedisClusterConnectionManager
[src]
impl Debug for RedisClusterConnectionManager
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl ManageConnection for RedisClusterConnectionManager
[src]
impl ManageConnection for RedisClusterConnectionManager
type Connection = Connection
The connection type this manager deals with.
type Error = RedisError
The error type returned by Connection
s.
fn connect(&self) -> Result<Self::Connection, Self::Error>
[src]
fn connect(&self) -> Result<Self::Connection, Self::Error>
Attempts to create a new connection.
fn is_valid(&self, conn: &mut Self::Connection) -> Result<(), Self::Error>
[src]
fn is_valid(&self, conn: &mut Self::Connection) -> Result<(), Self::Error>
Determines if the connection is still connected to the database. Read more
fn has_broken(&self, _conn: &mut Self::Connection) -> bool
[src]
fn has_broken(&self, _conn: &mut Self::Connection) -> bool
Quickly determines if the connection is no longer usable. Read more
Auto Trait Implementations
impl Send for RedisClusterConnectionManager
impl Send for RedisClusterConnectionManager
impl Sync for RedisClusterConnectionManager
impl Sync for RedisClusterConnectionManager