pub struct RedisPool<F, C>{ /* private fields */ }Implementations§
Source§impl<F, C> RedisPool<F, C>
impl<F, C> RedisPool<F, C>
pub fn new(factory: F, pool_size: usize, con_limit: Option<usize>) -> Self
pub async fn acquire(&self) -> Result<RedisPoolConnection<C>, RedisPoolError>
pub async fn aquire(&self) -> Result<RedisPoolConnection<C>, RedisPoolError>
👎Deprecated since 0.5.0: Please use
acquire insteadpub fn factory(&self) -> &F
Trait Implementations§
Auto Trait Implementations§
impl<F, C> Freeze for RedisPool<F, C>where
F: Freeze,
impl<F, C> RefUnwindSafe for RedisPool<F, C>where
F: RefUnwindSafe,
impl<F, C> Send for RedisPool<F, C>
impl<F, C> Sync for RedisPool<F, C>
impl<F, C> Unpin for RedisPool<F, C>where
F: Unpin,
impl<F, C> UnwindSafe for RedisPool<F, C>where
F: UnwindSafe,
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