[][src]Struct diesel::r2d2::PooledConnection

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

A smart pointer wrapping a connection.

Implementations

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

pub fn extensions(this: &PooledConnection<M>) -> &Extensions[src]

Returns a shared reference to the extensions associated with this connection.

pub fn extensions_mut(this: &mut PooledConnection<M>) -> &mut Extensions[src]

Returns a mutable reference to the extensions associated with this connection.

Trait Implementations

impl<M> Connection for PooledConnection<M> where
    M: ManageConnection,
    M::Connection: Connection + R2D2Connection + Send + 'static, 
[src]

type Backend = <M::Connection as Connection>::Backend

The backend this type connects to

type TransactionManager = PooledConnectionTransactionManager<M>

impl<M> Debug for PooledConnection<M> where
    M: ManageConnection,
    <M as ManageConnection>::Connection: Debug
[src]

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

type Target = <M as ManageConnection>::Connection

The resulting type after dereferencing.

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

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

impl<M> MigrationConnection for PooledConnection<M> where
    M: ManageConnection,
    M::Connection: MigrationConnection,
    Self: Connection
[src]

impl<M> SimpleConnection for PooledConnection<M> where
    M: ManageConnection,
    M::Connection: R2D2Connection + Send + 'static, 
[src]

impl<Changes, Output, M> UpdateAndFetchResults<Changes, Output> for PooledConnection<M> where
    M: ManageConnection,
    M::Connection: UpdateAndFetchResults<Changes, Output>,
    Self: Connection
[src]

Auto Trait Implementations

impl<M> !RefUnwindSafe for PooledConnection<M>

impl<M> Send for PooledConnection<M> where
    <M as ManageConnection>::Connection: Send

impl<M> Sync for PooledConnection<M> where
    <M as ManageConnection>::Connection: Send + Sync

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

impl<M> !UnwindSafe for PooledConnection<M>

Blanket Implementations

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

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

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

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

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

impl<T> IntoSql 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<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]