pub trait CacheClient: Sized + Send + Sync
where Self::Error: Error + Send + Sync + 'static,
{ type Error; // Required method fn fetch<'life0, 'life1, 'async_trait>( &'life0 self, uri: &'life1 Uri ) -> Pin<Box<dyn Future<Output = Result<Resource, Report<Self::Error>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; }

Required Associated Types§

Required Methods§

source

fn fetch<'life0, 'life1, 'async_trait>( &'life0 self, uri: &'life1 Uri ) -> Pin<Box<dyn Future<Output = Result<Resource, Report<Self::Error>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Simple async interface to fetch data and its TTL for an URI

Object Safety§

This trait is not object safe.

Implementors§