[][src]Struct sqlx::pool::PoolConnection

pub struct PoolConnection<DB> where
    DB: Database
{ /* fields omitted */ }

A connection managed by a Pool.

Will be returned to the pool on-drop.

Implementations

impl<DB> PoolConnection<DB> where
    DB: Database
[src]

pub fn release(self) -> <DB as Database>::Connection[src]

Explicitly release a connection from the pool

Trait Implementations

impl<'c> Acquire<'c> for &'c mut PoolConnection<Sqlite>[src]

type Database = Sqlite

type Connection = &'c mut <Sqlite as Database>::Connection

impl<'c> Acquire<'c> for &'c mut PoolConnection<MySql>[src]

type Database = MySql

type Connection = &'c mut <MySql as Database>::Connection

impl<'c> Acquire<'c> for &'c mut PoolConnection<Mssql>[src]

type Database = Mssql

type Connection = &'c mut <Mssql as Database>::Connection

impl<'c> Acquire<'c> for &'c mut PoolConnection<Any>[src]

type Database = Any

type Connection = &'c mut <Any as Database>::Connection

impl<'c> Acquire<'c> for &'c mut PoolConnection<Postgres>[src]

type Database = Postgres

type Connection = &'c mut <Postgres as Database>::Connection

impl<DB> Debug for PoolConnection<DB> where
    DB: Database
[src]

impl<DB> Deref for PoolConnection<DB> where
    DB: Database
[src]

type Target = <DB as Database>::Connection

The resulting type after dereferencing.

impl<DB> DerefMut for PoolConnection<DB> where
    DB: Database
[src]

impl<DB> Drop for PoolConnection<DB> where
    DB: Database
[src]

Returns the connection to the Pool it was checked-out from.

impl<'c> Executor<'c> for &'c mut PoolConnection<Sqlite>[src]

type Database = Sqlite

impl<'c> Executor<'c> for &'c mut PoolConnection<Any>[src]

type Database = Any

impl<'c> Executor<'c> for &'c mut PoolConnection<Postgres>[src]

type Database = Postgres

impl<'c> Executor<'c> for &'c mut PoolConnection<Mssql>[src]

type Database = Mssql

impl<'c> Executor<'c> for &'c mut PoolConnection<MySql>[src]

type Database = MySql

Auto Trait Implementations

impl<DB> !RefUnwindSafe for PoolConnection<DB>[src]

impl<DB> Send for PoolConnection<DB> where
    <DB as Database>::Connection: Send,
    <<DB as Database>::Connection as Connection>::Options: Send + Sync
[src]

impl<DB> Sync for PoolConnection<DB> where
    <DB as Database>::Connection: Send + Sync,
    <<DB as Database>::Connection as Connection>::Options: Send + Sync
[src]

impl<DB> Unpin for PoolConnection<DB> where
    <DB as Database>::Connection: Unpin
[src]

impl<DB> !UnwindSafe for PoolConnection<DB>[src]

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> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

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

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

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T> TryConv for T

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>,