[][src]Trait c3p0_pg_async::pool::C3p0PoolAsync

pub trait C3p0PoolAsync: Clone {
    type CONN;
    fn transaction<'life0, 'async_trait, T, E, F>(
        &'life0 self,
        tx: F
    ) -> Pin<Box<dyn Future<Output = Result<T, E>> + 'async_trait + Send>>
    where
        'life0: 'async_trait,
        E: From<C3p0Error> + 'async_trait,
        F: Send + FnOnce(&mut Self::CONN) -> Pin<Box<dyn Future<Output = Result<T, E>> + Send>> + 'async_trait,
        Self: 'async_trait,
        T: Send + Sync + 'async_trait
; }

Associated Types

type CONN

Loading content...

Required methods

fn transaction<'life0, 'async_trait, T, E, F>(
    &'life0 self,
    tx: F
) -> Pin<Box<dyn Future<Output = Result<T, E>> + 'async_trait + Send>> where
    'life0: 'async_trait,
    E: From<C3p0Error> + 'async_trait,
    F: Send + FnOnce(&mut Self::CONN) -> Pin<Box<dyn Future<Output = Result<T, E>> + Send>> + 'async_trait,
    Self: 'async_trait,
    T: Send + Sync + 'async_trait, 

Loading content...

Implementors

impl C3p0PoolAsync for PgC3p0Pool[src]

type CONN = PgConnection

Loading content...