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

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

Implementors§

source§

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