pub trait Loader<K: Send + Sync + Hash + Eq + Clone + 'static, V: Send + Sync + Clone + 'static>:
Send
+ Sync
+ 'static {
type Error: Send + Clone + 'static;
// Required method
fn load(
&self,
keys: &[K],
) -> impl Future<Output = Result<HashMap<K, V>, Self::Error>> + Send;
}Expand description
Trait for batch loading.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".