Trait c3p0::C3p0Pool[][src]

pub trait C3p0Pool: Clone + Send + Sync {
    type Conn;
#[must_use]    pub fn transaction<'life0, 'async_trait, T, E, F, Fut>(
        &'life0 self,
        tx: F
    ) -> Pin<Box<dyn Future<Output = Result<T, E>> + 'async_trait + Send, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait,
        E: Send + From<C3p0Error> + 'async_trait,
        T: Send + 'async_trait,
        F: Send + FnOnce(Self::Conn) -> Fut + 'async_trait,
        Fut: Send + Future<Output = Result<T, E>> + 'async_trait
; }

Associated Types

Loading content...

Required methods

#[must_use]pub fn transaction<'life0, 'async_trait, T, E, F, Fut>(
    &'life0 self,
    tx: F
) -> Pin<Box<dyn Future<Output = Result<T, E>> + 'async_trait + Send, Global>> where
    'life0: 'async_trait,
    Self: 'async_trait,
    E: Send + From<C3p0Error> + 'async_trait,
    T: Send + 'async_trait,
    F: Send + FnOnce(Self::Conn) -> Fut + 'async_trait,
    Fut: Send + Future<Output = Result<T, E>> + 'async_trait, 
[src]

Loading content...

Implementors

Loading content...