pub struct GetObjectIter { /* private fields */ }
Expand description
Iterator-like object retrieving all objects or objects with a given prefix
The iterator yields tuples of (key, object)
.
Implementations§
Source§impl GetObjectIter
impl GetObjectIter
Sourcepub async fn retrieve_next(
&mut self,
) -> S3ExtResult<Option<(String, GetObjectOutput)>>
pub async fn retrieve_next( &mut self, ) -> S3ExtResult<Option<(String, GetObjectOutput)>>
Retrieve the next object
pub async fn next(&mut self) -> S3ExtResult<Option<(String, GetObjectOutput)>>
Sourcepub async fn count(self) -> Result<usize, S3ExtError>
pub async fn count(self) -> Result<usize, S3ExtError>
Consume the iterator and return the number of elements
Sourcepub async fn last(self) -> Result<Option<(String, GetObjectOutput)>, S3ExtError>
pub async fn last(self) -> Result<Option<(String, GetObjectOutput)>, S3ExtError>
Consume the iterator and retreive the last element
Sourcepub async fn nth(
&mut self,
n: usize,
) -> Result<Option<(String, GetObjectOutput)>, S3ExtError>
pub async fn nth( &mut self, n: usize, ) -> Result<Option<(String, GetObjectOutput)>, S3ExtError>
Consume the iterator and return the nth element
Trait Implementations§
Source§impl Clone for GetObjectIter
impl Clone for GetObjectIter
Source§fn clone(&self) -> GetObjectIter
fn clone(&self) -> GetObjectIter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for GetObjectIter
impl !RefUnwindSafe for GetObjectIter
impl Send for GetObjectIter
impl Sync for GetObjectIter
impl Unpin for GetObjectIter
impl !UnwindSafe for GetObjectIter
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