[][src]Struct mobc::PooledConnection

pub struct PooledConnection<M> where
    M: ConnectionManager
{ /* fields omitted */ }

A smart pointer wrapping a connection.

Methods

impl<M> PooledConnection<M> where
    M: ConnectionManager
[src]

pub fn take_raw_conn(&mut self) -> M::Connection[src]

Takes the raw database connection

pub fn set_raw_conn(&mut self, raw: M::Connection)[src]

Put back the raw database connection

Trait Implementations

impl<M> Drop for PooledConnection<M> where
    M: ConnectionManager
[src]

impl<M> Deref for PooledConnection<M> where
    M: ConnectionManager
[src]

type Target = M::Connection

The resulting type after dereferencing.

impl<M> DerefMut for PooledConnection<M> where
    M: ConnectionManager
[src]

Auto Trait Implementations

impl<M> Send for PooledConnection<M> where
    <M as ConnectionManager>::Connection: Send,
    <M as ConnectionManager>::Executor: Send + Sync

impl<M> Sync for PooledConnection<M> where
    <M as ConnectionManager>::Connection: Send + Sync,
    <M as ConnectionManager>::Executor: Send + Sync

impl<M> Unpin for PooledConnection<M> where
    <M as ConnectionManager>::Connection: Unpin

impl<M> !UnwindSafe for PooledConnection<M>

impl<M> !RefUnwindSafe for PooledConnection<M>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]