[][src]Trait reool::RedisPool

pub trait RedisPool {
type Connection: Poolable;
    fn check_out(&self) -> Checkout<Self::Connection>;
fn check_out_explicit_timeout(
        &self,
        timeout: Option<Duration>
    ) -> Checkout<Self::Connection>; }

A trait that can be used as an interface for a connection pool.

Associated Types

Loading content...

Required methods

fn check_out(&self) -> Checkout<Self::Connection>

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

fn check_out_explicit_timeout(
    &self,
    timeout: Option<Duration>
) -> Checkout<Self::Connection>

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

Loading content...

Implementors

impl<T: Poolable> RedisPool for MultiNodePool<T>[src]

impl<T: Poolable> RedisPool for SingleNodePool<T>[src]

Loading content...