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

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

Implementors§

source§

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