Trait dataloader::BatchFn

source ·
pub trait BatchFn<K, V> {
    // Required method
    fn load(&mut self, keys: &[K]) -> impl Future<Output = HashMap<K, V>>;
}

Required Methods§

source

fn load(&mut self, keys: &[K]) -> impl Future<Output = HashMap<K, V>>

Object Safety§

This trait is not object safe.

Implementors§