Trait Paginator
Source pub trait Paginator<T>: Sync {
// Required method
fn fetch_page<'life0, 'async_trait>(
&'life0 self,
start_at: u32,
max_results: u32,
) -> Pin<Box<dyn Future<Output = Result<PagedResponse<T>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided methods
fn fetch_all<'life0, 'async_trait>(
&'life0 self,
max_results: u32,
) -> Pin<Box<dyn Future<Output = Result<Vec<T>>> + Send + 'async_trait>>
where T: Send,
Self: 'async_trait,
'life0: 'async_trait { ... }
fn stream<'a>(
&'a self,
max_results: u32,
) -> Pin<Box<dyn Stream<Item = Result<Vec<T>>> + Send + 'a>>
where T: Send + 'a { ... }
}