pub trait Page: Send + Sync + 'static {
// Required method
fn next_page<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<Entry>>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Page trait is used by crate::raw::Accessor
to implement list
or scan
operation.
Required Methods§
sourcefn next_page<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<Entry>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn next_page<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<Entry>>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Fetch a new page of Entry
Ok(None)
means all object pages have been returned. Any following call
to next_page
will always get the same result.