[][src]Trait dataloader::BatchFn

pub trait BatchFn<K, V> {
    type Error;
    fn load(&self, keys: &[K]) -> BatchFuture<V, Self::Error>;

    fn max_batch_size(&self) -> usize { ... }
}

Associated Types

type Error

Loading content...

Required methods

fn load(&self, keys: &[K]) -> BatchFuture<V, Self::Error>

Loading content...

Provided methods

fn max_batch_size(&self) -> usize

Loading content...

Implementors

Loading content...