Struct r2d2::PooledConnection
source · [−]pub struct PooledConnection<M> where
M: ManageConnection, { /* private fields */ }
Expand description
A smart pointer wrapping a connection.
Implementations
sourceimpl<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
sourceimpl<M> Debug for PooledConnection<M> where
M: ManageConnection,
M::Connection: Debug,
impl<M> Debug for PooledConnection<M> where
M: ManageConnection,
M::Connection: Debug,
sourceimpl<M> Deref for PooledConnection<M> where
M: ManageConnection,
impl<M> Deref for PooledConnection<M> where
M: ManageConnection,
type Target = M::Connection
type Target = M::Connection
The resulting type after dereferencing.
sourcefn deref(&self) -> &M::Connection
fn deref(&self) -> &M::Connection
Dereferences the value.
sourceimpl<M> DerefMut for PooledConnection<M> where
M: ManageConnection,
impl<M> DerefMut for PooledConnection<M> where
M: ManageConnection,
sourcefn deref_mut(&mut self) -> &mut M::Connection
fn deref_mut(&mut self) -> &mut M::Connection
Mutably dereferences the value.
sourceimpl<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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more