pub struct ConnHandle<C: Send + 'static> { /* private fields */ }Expand description
Handle returned by ConnPool::get.
Dropping the handle returns the connection to the pool. Call
ConnHandle::discard when the connection is no longer healthy
(the slot will then be re-filled by the next get).
Implementations§
Source§impl<C: Send + 'static> ConnHandle<C>
impl<C: Send + 'static> ConnHandle<C>
Trait Implementations§
Source§impl<C: Send + 'static> Debug for ConnHandle<C>
impl<C: Send + 'static> Debug for ConnHandle<C>
Source§impl<C: Send + 'static> Drop for ConnHandle<C>
impl<C: Send + 'static> Drop for ConnHandle<C>
Auto Trait Implementations§
impl<C> Freeze for ConnHandle<C>where
C: Freeze,
impl<C> !RefUnwindSafe for ConnHandle<C>
impl<C> Send for ConnHandle<C>
impl<C> Sync for ConnHandle<C>where
C: Sync,
impl<C> Unpin for ConnHandle<C>where
C: Unpin,
impl<C> UnsafeUnpin for ConnHandle<C>where
C: UnsafeUnpin,
impl<C> !UnwindSafe for ConnHandle<C>
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