pub struct PoolConnection { /* private fields */ }Expand description
A connection borrowed from the pool.
Provides exclusive (&mut) access to the underlying PoolGuard — no
Mutex needed. Generated code converts &mut PoolConnection into a
QueryTarget for dispatch.
Returned to the pool when dropped.
Trait Implementations§
Source§impl Debug for PoolConnection
impl Debug for PoolConnection
Source§impl<'a> From<&'a mut PoolConnection> for QueryTarget<'a>
impl<'a> From<&'a mut PoolConnection> for QueryTarget<'a>
Source§fn from(conn: &'a mut PoolConnection) -> Self
fn from(conn: &'a mut PoolConnection) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PoolConnection
impl RefUnwindSafe for PoolConnection
impl Send for PoolConnection
impl Sync for PoolConnection
impl Unpin for PoolConnection
impl UnsafeUnpin for PoolConnection
impl UnwindSafe for PoolConnection
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