[][src]Trait dataloader::BatchFn

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

Associated Types

type Error

Loading content...

Required methods

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

Loading content...

Provided methods

fn max_batch_size(&self) -> usize

Loading content...

Implementors

Loading content...