cache

Trait 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