Struct redis_dumbpool::Pool [−][src]
Redis connection pool
Implementations
impl Pool
[src]
pub async fn factory(
addr: &str,
min: u8,
max: u8,
sleep: u64,
refresh: u64
) -> RedisResult<Self>
[src]
addr: &str,
min: u8,
max: u8,
sleep: u64,
refresh: u64
) -> RedisResult<Self>
Create a new Pool, pointing to a single Redis server, with minimum and maximum number of active connections, the amount of nanoseconds to wait between retries when the connection pool is at maximum capacity and the amount of nanoseconds between every connection keepalive (0 for no keepalive)
pub async fn get_conn(&self) -> RedisResult<ConnWrapper>
[src]
Retrieve a connection from the pool The connection is tested before being released, if test fails a new connection is generated
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Pool
[src]
impl Send for Pool
[src]
impl Sync for Pool
[src]
impl Unpin for Pool
[src]
impl !UnwindSafe for Pool
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,