[][src]Struct r2d2_redis_cluster::RedisClusterConnectionManager

pub struct RedisClusterConnectionManager { /* fields omitted */ }

An r2d2::ConnectionManager for redis_cluster_rs::Client.

Implementations

impl RedisClusterConnectionManager[src]

pub fn new<T: IntoConnectionInfo>(
    input_nodes: Vec<T>
) -> RedisResult<RedisClusterConnectionManager>
[src]

Create new RedisClusterConnectionManager.

pub fn new_with_auth<T: IntoConnectionInfo>(
    input_nodes: Vec<T>,
    password: String
) -> RedisResult<RedisClusterConnectionManager>
[src]

👎 Deprecated:

Please use new and password function

Create new RedisClusterConnectionManager with authentication.

pub fn set_readonly(&mut self, readonly: bool)[src]

Set read only mode for new Connection.

pub fn set_password(&mut self, password: String)[src]

Set password for new Connection.

pub fn set_read_timeout(&mut self, timeout: Option<Duration>)[src]

Set the read timeout for the connection.

pub fn set_write_timeout(&mut self, timeout: Option<Duration>)[src]

Set the write timeout for the connection.

Trait Implementations

impl Debug for RedisClusterConnectionManager[src]

impl ManageConnection for RedisClusterConnectionManager[src]

type Connection = Connection

The connection type this manager deals with.

type Error = RedisError

The error type returned by Connections.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,