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