[][src]Struct redis::cluster::ClusterConnection

pub struct ClusterConnection { /* fields omitted */ }
This is supported on crate feature cluster only.

This is a connection of Redis cluster.

Implementations

impl ClusterConnection[src]

pub fn set_auto_reconnect(&self, value: bool)[src]

Set an auto reconnect attribute. Default value is true;

pub fn set_write_timeout(&self, dur: Option<Duration>) -> RedisResult<()>[src]

Sets the write timeout for the connection.

If the provided value is None, then send_packed_command call will block indefinitely. It is an error to pass the zero Duration to this method.

pub fn set_read_timeout(&self, dur: Option<Duration>) -> RedisResult<()>[src]

Sets the read timeout for the connection.

If the provided value is None, then recv_response call will block indefinitely. It is an error to pass the zero Duration to this method.

pub fn check_connection(&mut self) -> bool[src]

Check that all connections it has are available (PING internally).

Trait Implementations

impl ConnectionLike for ClusterConnection[src]

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>,