Trait cache::GenerateFn

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

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

Implementors§

source§

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