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 { ... }
}Required Methods§
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,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".