pub struct PooledConnection<C: Connection> { /* private fields */ }Expand description
A connection borrowed from the pool.
When dropped, the connection is automatically returned to the pool.
The connection can be used via Deref and DerefMut.
Implementations§
Source§impl<C: Connection> PooledConnection<C>
impl<C: Connection> PooledConnection<C>
Trait Implementations§
Source§impl<C: Connection + Debug> Debug for PooledConnection<C>
impl<C: Connection + Debug> Debug for PooledConnection<C>
Source§impl<C: Connection> Deref for PooledConnection<C>
impl<C: Connection> Deref for PooledConnection<C>
Source§impl<C: Connection> DerefMut for PooledConnection<C>
impl<C: Connection> DerefMut for PooledConnection<C>
Source§impl<C: Connection> Drop for PooledConnection<C>
impl<C: Connection> Drop for PooledConnection<C>
Auto Trait Implementations§
impl<C> Freeze for PooledConnection<C>where
C: Freeze,
impl<C> RefUnwindSafe for PooledConnection<C>where
C: RefUnwindSafe,
impl<C> Send for PooledConnection<C>
impl<C> Sync for PooledConnection<C>
impl<C> Unpin for PooledConnection<C>where
C: Unpin,
impl<C> UnwindSafe for PooledConnection<C>where
C: 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).