pub struct ListObjectsV2PageIter<'a> { /* private fields */ }Expand description
Page-by-page iterator for list_objects_v2. Yields one page at a time; retries are applied per page request, so a failure on one page does not invalidate the iterator. MaxKeys is not set (SDK default, typically 1000 keys per page).
Uses Option<Option<String>> for continuation: None = first request not yet made,
Some(None) = no more pages, Some(Some(token)) = use token for next request.
Implementations§
Source§impl<'a> ListObjectsV2PageIter<'a>
impl<'a> ListObjectsV2PageIter<'a>
Sourcepub async fn next_page(
&mut self,
) -> Result<Option<(Vec<ObjectInfo>, Vec<CommonPrefixInfo>)>, S3Error>
pub async fn next_page( &mut self, ) -> Result<Option<(Vec<ObjectInfo>, Vec<CommonPrefixInfo>)>, S3Error>
Fetches the next page. Returns Ok(None) when there are no more pages.
Retries (using the client’s retry config) are applied to this single page request only.
Auto Trait Implementations§
impl<'a> Freeze for ListObjectsV2PageIter<'a>
impl<'a> !RefUnwindSafe for ListObjectsV2PageIter<'a>
impl<'a> Send for ListObjectsV2PageIter<'a>
impl<'a> Sync for ListObjectsV2PageIter<'a>
impl<'a> Unpin for ListObjectsV2PageIter<'a>
impl<'a> UnsafeUnpin for ListObjectsV2PageIter<'a>
impl<'a> !UnwindSafe for ListObjectsV2PageIter<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.