Trait c3p0::C3p0Pool

source ·
pub trait C3p0Pool: Clone + Send + Sync {
    type Tx;

    // Required method
    fn transaction<'a, T, E, F, Fut>(
        &'a self,
        tx: F
    ) -> impl Future<Output = Result<T, E>> + Send
       where T: Send,
             E: Send + From<C3p0Error>,
             F: Send + FnOnce(&'a mut Self::Tx) -> Fut,
             Fut: Send + Future<Output = Result<T, E>>;
}

Required Associated Types§

Required Methods§

source

fn transaction<'a, T, E, F, Fut>( &'a self, tx: F ) -> impl Future<Output = Result<T, E>> + Send
where T: Send, E: Send + From<C3p0Error>, F: Send + FnOnce(&'a mut Self::Tx) -> Fut, Fut: Send + Future<Output = Result<T, E>>,

Object Safety§

This trait is not object safe.

Implementors§