Trait cache::GenerateResultWithStateFn
source · 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.