[][src]Trait dataloader::BatchFn

pub trait BatchFn<K, V> {
#[must_use]    pub fn load<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        keys: &'life1 [K]
    ) -> Pin<Box<dyn Future<Output = HashMap<K, V>> + Send + 'async_trait>>
    where
        K: 'async_trait,
        V: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }

Required methods

#[must_use]pub fn load<'life0, 'life1, 'async_trait>(
    &'life0 mut self,
    keys: &'life1 [K]
) -> Pin<Box<dyn Future<Output = HashMap<K, V>> + Send + 'async_trait>> where
    K: 'async_trait,
    V: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Implementors

Loading content...