pub struct Connection<M>where
    M: ManageConnection,{ /* private fields */ }Expand description
A smart pointer wrapping a connection.
Trait Implementations§
Source§impl<M> Deref for Connection<M>where
    M: ManageConnection,
 
impl<M> Deref for Connection<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 Connection<M>where
    M: ManageConnection,
 
impl<M> DerefMut for Connection<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 Connection<M>where
    M: ManageConnection,
 
impl<M> Drop for Connection<M>where
    M: ManageConnection,
Auto Trait Implementations§
impl<M> Freeze for Connection<M>
impl<M> RefUnwindSafe for Connection<M>
impl<M> Send for Connection<M>
impl<M> Sync for Connection<M>
impl<M> Unpin for Connection<M>
impl<M> UnwindSafe for Connection<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
Source§impl<T, A> DynAccess<T> for A
 
impl<T, A> DynAccess<T> for A
Source§fn load(&self) -> DynGuard<T>
 
fn load(&self) -> DynGuard<T>
The equivalent of 
Access::load.