Struct deadpool_redis::ConnectionWrapper [−][src]
pub struct ConnectionWrapper { /* fields omitted */ }
Expand description
A wrapper for redis::Connection
. The query_async
and execute_async
functions of redis::Cmd
and redis::Pipeline
consume the connection.
This wrapper makes it possible to replace the internal connection after
executing a query.
Methods from Deref<Target = RedisConnection>
Trait Implementations
impl Deref for ConnectionWrapper
[src]
impl Deref for ConnectionWrapper
[src]type Target = RedisConnection
type Target = RedisConnection
The resulting type after dereferencing.
fn deref(&self) -> &RedisConnection
[src]
fn deref(&self) -> &RedisConnection
[src]Dereferences the value.
impl DerefMut for ConnectionWrapper
[src]
impl DerefMut for ConnectionWrapper
[src]fn deref_mut(&mut self) -> &mut RedisConnection
[src]
fn deref_mut(&mut self) -> &mut RedisConnection
[src]Mutably dereferences the value.
impl Manager<ConnectionWrapper, RedisError> for Manager
[src]
impl Manager<ConnectionWrapper, RedisError> for Manager
[src]fn create<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<ConnectionWrapper, RedisError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
fn create<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<ConnectionWrapper, RedisError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]Create a new instance of T
fn recycle<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut ConnectionWrapper
) -> Pin<Box<dyn Future<Output = RecycleResult<RedisError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
fn recycle<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut ConnectionWrapper
) -> Pin<Box<dyn Future<Output = RecycleResult<RedisError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]Try to recycle an instance of T
returning None` if the
object could not be recycled. Read more