Trait channel_loader::diesel::DieselLoader[][src]

pub trait DieselLoader: Send + Sync {
    type Key: Key;
    type Value: Send + Sync + Clone + 'static;
    fn load(
        conn: PooledConnection,
        keys: Vec<Self::Key>
    ) -> Result<HashMap<Self::Key, Arc<Self::Value>>, DieselError>; }
Expand description

a diesel specific loader interface using diesel_connection::get_connection for connection acquisition

Associated Types

Required methods

Implementors