pub trait Fetch: Debug + Send + Sync {
    // Required method
    fn fetch<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Entry>, SourceError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

A trait that defines a way to fetch (entries)Entry

Required Methods§

source

fn fetch<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<Vec<Entry>, SourceError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Fetch all available entries from the source

Implementations on Foreign Types§

source§

impl Fetch for String

source§

fn fetch<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<Vec<Entry>, SourceError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source§

impl<T> Fetch for Vec<T>where T: Fetch,

source§

fn fetch<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<Vec<Entry>, SourceError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Implementors§