[][src]Enum ciseaux_client::ReconnectBehavior

pub enum ReconnectBehavior {
    NoReconnect,
    InstantRetry,
    RetryWaitRetry(Option<Duration>),
}

To change the default behavior of the pool on network/io error.

Variants

NoReconnect

Will just return a RedisError, and the entire connection pool will not work after a disconnection, you should probably not use this

InstantRetry

This is the default one, on error it will drop the previous connection and create a new one instantly, then retry the redis command, if it keeps failing, then it will just return a RedisError

RetryWaitRetry(Option<Duration>)

Try to reconnect, but on fail, it will wait (2 seconds by default), then try again, if it keeps failing, then return a RedisError

Trait Implementations

impl Clone for ReconnectBehavior[src]

impl Copy for ReconnectBehavior[src]

impl Debug for ReconnectBehavior[src]

impl Default for ReconnectBehavior[src]

impl PartialEq<ReconnectBehavior> for ReconnectBehavior[src]

impl StructuralPartialEq for ReconnectBehavior[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.