pub trait GenerateResultFn<K, V, E>: FnOnce(&K) -> Result<V, E> + Send + Any { }
Expand description

A function that can be used to generate a result based on a key in a background thread.

Implementors§

source§

impl<K, V, E, T: FnOnce(&K) -> Result<V, E> + Send + Any> GenerateResultFn<K, V, E> for T