Fetcher

Trait Fetcher 

Source
pub trait Fetcher<K, T>
where T: Send + Sync + 'static,
{ type Error: Send; // Required method fn fetch( &self, key: K, ) -> impl Future<Output = Result<T, Self::Error>> + Send; }

Required Associated Types§

Required Methods§

Source

fn fetch(&self, key: K) -> impl Future<Output = Result<T, Self::Error>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§