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.