[][src]Struct reool::RedisPool

pub struct RedisPool(_);

A pool to one or more Redis instances.

Methods

impl RedisPool[src]

pub fn builder() -> Builder[src]

pub fn no_pool() -> Self[src]

pub fn check_out(&self) -> Checkout[src]

Checkout a new connection and if the request has to be enqueued use a timeout as defined by the pool as a default.

pub fn check_out_explicit_timeout(&self, timeout: Option<Duration>) -> Checkout[src]

Checkout a new connection and if the request has to be enqueued use the given timeout or wait indefinitely if timeout is None.

pub fn ping(
    &self,
    timeout: Duration
) -> impl Future<Item = Vec<Ping>, Error = ()> + Send
[src]

Ping all the nodes which this pool is connected to.

timeout is the maximum time allowed for a ping.

pub fn connected_to(&self) -> &[String][src]

Trait Implementations

impl Clone for RedisPool[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

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