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