[][src]Trait c3p0_pool_pg::C3p0Pool

pub trait C3p0Pool: Clone {
    type CONN: Connection;
    fn connection(&self) -> Result<Self::CONN, C3p0Error>;
fn transaction<T, F>(&self, tx: F) -> Result<T, C3p0Error>
    where
        F: FnOnce(&Self::CONN) -> Result<T, Box<dyn Error + 'static>>
; }

Associated Types

Loading content...

Required methods

fn connection(&self) -> Result<Self::CONN, C3p0Error>

fn transaction<T, F>(&self, tx: F) -> Result<T, C3p0Error> where
    F: FnOnce(&Self::CONN) -> Result<T, Box<dyn Error + 'static>>, 

Loading content...

Implementors

impl C3p0Pool for C3p0PoolPg[src]

type CONN = PgConnection

Loading content...