Trait opendal::raw::output::Page

source ·
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§

source

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.

Implementations on Foreign Types§

source§

impl Page for ()

source§

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,

source§

impl<P: Page> Page for Option<P>

source§

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,

Implementors§

source§

impl Page for Pager

source§

impl<A, P> Page for ToFlatPager<A, P>where A: Accessor<Pager = P>, P: Page,

source§

impl<P: Page> Page for ToHierarchyPager<P>