[][src]Trait c3p0_common::pool::C3p0Pool

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

Associated Types

type CONN

Loading content...

Required methods

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

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

Loading content...

Implementors

Loading content...