pub struct PooledConnection<M>where
M: ManageConnection,{ /* private fields */ }
Expand description
A smart pointer wrapping a connection.
Implementations§
Source§impl<M> PooledConnection<M>where
M: ManageConnection,
impl<M> PooledConnection<M>where
M: ManageConnection,
Sourcepub fn extensions(this: &Self) -> &Extensions
pub fn extensions(this: &Self) -> &Extensions
Returns a shared reference to the extensions associated with this connection.
Sourcepub fn extensions_mut(this: &mut Self) -> &mut Extensions
pub fn extensions_mut(this: &mut Self) -> &mut Extensions
Returns a mutable reference to the extensions associated with this connection.
Trait Implementations§
Source§impl<M> Debug for PooledConnection<M>
impl<M> Debug for PooledConnection<M>
Source§impl<M> Deref for PooledConnection<M>where
M: ManageConnection,
impl<M> Deref for PooledConnection<M>where
M: ManageConnection,
Source§type Target = <M as ManageConnection>::Connection
type Target = <M as ManageConnection>::Connection
The resulting type after dereferencing.
Source§fn deref(&self) -> &M::Connection
fn deref(&self) -> &M::Connection
Dereferences the value.
Source§impl<M> DerefMut for PooledConnection<M>where
M: ManageConnection,
impl<M> DerefMut for PooledConnection<M>where
M: ManageConnection,
Source§fn deref_mut(&mut self) -> &mut M::Connection
fn deref_mut(&mut self) -> &mut M::Connection
Mutably dereferences the value.
Source§impl<M> Drop for PooledConnection<M>where
M: ManageConnection,
impl<M> Drop for PooledConnection<M>where
M: ManageConnection,
Auto Trait Implementations§
impl<M> Freeze for PooledConnection<M>
impl<M> !RefUnwindSafe for PooledConnection<M>
impl<M> Send for PooledConnection<M>
impl<M> Sync for PooledConnection<M>
impl<M> Unpin for PooledConnection<M>
impl<M> !UnwindSafe for PooledConnection<M>
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