[][src]Trait c3p0_pool_mysql::C3p0Pool

pub trait C3p0Pool: Clone {
    type CONN: Connection;
    fn connection(&self) -> Result<Self::CONN, C3p0Error>;
fn transaction<T, E, F>(&self, tx: F) -> Result<T, E>
    where
        E: From<C3p0Error>,
        F: FnOnce(&Self::CONN) -> Result<T, E>
; }

Associated Types

Loading content...

Required methods

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

fn transaction<T, E, F>(&self, tx: F) -> Result<T, E> where
    E: From<C3p0Error>,
    F: FnOnce(&Self::CONN) -> Result<T, E>, 

Loading content...

Implementors

impl C3p0Pool for C3p0PoolMysql[src]

type CONN = MysqlConnection

Loading content...