pub trait Refresher<K, V> {
type Error;
// Required method
fn get(&self, key: K) -> impl Future<Output = Result<V, Self::Error>> + Send;
}Expand description
A Refresher maps a key to a value asynchronously
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".