Struct relay_redis::PooledClient
source · pub struct PooledClient { /* private fields */ }
Expand description
A pooled Redis client.
Implementations§
source§impl PooledClient
impl PooledClient
sourcepub fn connection(&mut self) -> Result<Connection<'_>, RedisError>
pub fn connection(&mut self) -> Result<Connection<'_>, RedisError>
Returns a pooled connection to this client.
When the connection is fetched from the pool, we also set the read and write timeouts to the configured values.
Auto Trait Implementations§
impl !RefUnwindSafe for PooledClient
impl Send for PooledClient
impl !Sync for PooledClient
impl Unpin for PooledClient
impl !UnwindSafe for PooledClient
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more