[−][src]Enum ciseaux_client::ReconnectBehavior
To change the default behavior of the pool on network/io error.
Variants
Will just return a RedisError, and the entire connection pool will not work after a disconnection, you should probably not use this
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
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]
fn clone(&self) -> ReconnectBehavior
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ReconnectBehavior
[src]
impl Debug for ReconnectBehavior
[src]
impl Default for ReconnectBehavior
[src]
impl PartialEq<ReconnectBehavior> for ReconnectBehavior
[src]
fn eq(&self, other: &ReconnectBehavior) -> bool
[src]
fn ne(&self, other: &ReconnectBehavior) -> bool
[src]
impl StructuralPartialEq for ReconnectBehavior
[src]
Auto Trait Implementations
impl RefUnwindSafe for ReconnectBehavior
impl Send for ReconnectBehavior
impl Sync for ReconnectBehavior
impl Unpin for ReconnectBehavior
impl UnwindSafe for ReconnectBehavior
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,