Trait opendal::raw::ObjectPage
source · pub trait ObjectPage: Send + Sync + 'static {
fn next_page<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<ObjectEntry>>>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
ObjectPage trait is used by Accessor
to implement list
operation.
list
will return a boxed ObjectPage
which allow users to call next_page
to fecth a new page of ObjectEntry
.
Required Methods§
sourcefn next_page<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<ObjectEntry>>>> + 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<ObjectEntry>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch a new page of ObjectEntry
Ok(None)
means all object pages have been returned. Any following call
to next_page
will always get the same result.