Struct r2d2::PooledConnection
source · 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>where
M: ManageConnection,
M::Connection: Debug,
impl<M> Debug for PooledConnection<M>where M: ManageConnection, M::Connection: Debug,
source§impl<M> Deref for PooledConnection<M>where
M: ManageConnection,
impl<M> Deref for PooledConnection<M>where M: ManageConnection,
§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> !RefUnwindSafe for PooledConnection<M>
impl<M> Send for PooledConnection<M>
impl<M> Sync for PooledConnection<M>where <M as ManageConnection>::Connection: Sync,
impl<M> Unpin for PooledConnection<M>where <M as ManageConnection>::Connection: Unpin,
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