pub struct ManagedConnection<M>{ /* private fields */ }Expand description
Pooled managed stream, provided for the outer world usage
Implementations§
Source§impl<M: ConnectionManager> ManagedConnection<M>
impl<M: ConnectionManager> ManagedConnection<M>
Sourcepub fn into_inner(self) -> M::Connection
pub fn into_inner(self) -> M::Connection
Consume the managed connection and return the inner connection
Trait Implementations§
Source§impl<M: ConnectionManager> AsMut<<M as ConnectionManager>::Connection> for ManagedConnection<M>
impl<M: ConnectionManager> AsMut<<M as ConnectionManager>::Connection> for ManagedConnection<M>
Source§fn as_mut(&mut self) -> &mut M::Connection
fn as_mut(&mut self) -> &mut M::Connection
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl<M: ConnectionManager> AsRef<<M as ConnectionManager>::Connection> for ManagedConnection<M>
impl<M: ConnectionManager> AsRef<<M as ConnectionManager>::Connection> for ManagedConnection<M>
Source§fn as_ref(&self) -> &M::Connection
fn as_ref(&self) -> &M::Connection
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl<M: ConnectionManager> Deref for ManagedConnection<M>
impl<M: ConnectionManager> Deref for ManagedConnection<M>
Source§type Target = <M as ConnectionManager>::Connection
type Target = <M as ConnectionManager>::Connection
The resulting type after dereferencing.
Source§impl<M: ConnectionManager> DerefMut for ManagedConnection<M>
impl<M: ConnectionManager> DerefMut for ManagedConnection<M>
Source§impl<M: ConnectionManager> Drop for ManagedConnection<M>
impl<M: ConnectionManager> Drop for ManagedConnection<M>
Auto Trait Implementations§
impl<M> Freeze for ManagedConnection<M>
impl<M> !RefUnwindSafe for ManagedConnection<M>
impl<M> Send for ManagedConnection<M>
impl<M> Sync for ManagedConnection<M>
impl<M> Unpin for ManagedConnection<M>
impl<M> !UnwindSafe for ManagedConnection<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