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

Required Associated Types§

Required Methods§

source

fn fetch( &self, uri: &str ) -> impl Future<Output = Result<Resource, Report<Self::Error>>> + Send

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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl CacheClient for Client

§

type Error = ClientError

source§

async fn fetch(&self, uri: &str) -> Result<Resource, Report<Self::Error>>

Implementors§