[−][src]Struct redis_tang::PoolRef
Implementations
impl<'_, M> PoolRef<'_, M> where
M: Manager,
[src]
M: Manager,
pub fn get_conn(&mut self) -> &mut <M as Manager>::Connection
[src]
get a mut reference of connection.
pub fn take_conn(&mut self) -> Option<<M as Manager>::Connection>
[src]
take the the ownership of connection from pool and it won't be pushed back to pool anymore.
pub fn push_conn(&mut self, conn: <M as Manager>::Connection)
[src]
manually push a connection to pool. We treat this connection as a new born one.
operation will fail if the pool is already in full capacity(no error will return and this connection will be dropped silently)
pub fn get_manager(&self) -> &M
[src]
Trait Implementations
impl<'_, M> Deref for PoolRef<'_, M> where
M: Manager,
[src]
M: Manager,
type Target = <M as Manager>::Connection
The resulting type after dereferencing.
fn deref(&self) -> &<PoolRef<'_, M> as Deref>::Target
[src]
impl<'_, M> DerefMut for PoolRef<'_, M> where
M: Manager,
[src]
M: Manager,
impl<'_, M> Drop for PoolRef<'_, M> where
M: Manager,
[src]
M: Manager,
Auto Trait Implementations
impl<'a, M> !RefUnwindSafe for PoolRef<'a, M>
impl<'a, M> Send for PoolRef<'a, M> where
<M as Manager>::Connection: Send,
<M as Manager>::Connection: Send,
impl<'a, M> Sync for PoolRef<'a, M> where
<M as Manager>::Connection: Sync,
<M as Manager>::Connection: Sync,
impl<'a, M> Unpin for PoolRef<'a, M> where
<M as Manager>::Connection: Unpin,
<M as Manager>::Connection: Unpin,
impl<'a, M> !UnwindSafe for PoolRef<'a, M>
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,
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, 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.
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>,