pub trait AsyncFactory<K: AsyncKey, V: AsyncStorable>: Fn(&K) -> V + Send + Sync + 'static { }
Expand description

A trait for factory methods that can be used to create new values for a key in an asynchronous map. A blanket implementation is provided.

Implementors§

source§

impl<K: AsyncKey, V: AsyncStorable, F: Fn(&K) -> V + Send + Sync + 'static> AsyncFactory<K, V> for F