pub struct ObjectIter { /* private fields */ }
Expand description
Iterator-like objects, forms the basis of ObjectStream
Implementations§
Source§impl ObjectIter
impl ObjectIter
Sourcepub async fn next_object(
&mut self,
) -> Result<Option<Object>, RusotoError<ListObjectsV2Error>>
pub async fn next_object( &mut self, ) -> Result<Option<Object>, RusotoError<ListObjectsV2Error>>
Get the next object (or None if there are no more objects), may return an error when fetching objects.
Sourcepub async fn count(self) -> Result<usize, RusotoError<ListObjectsV2Error>>
pub async fn count(self) -> Result<usize, RusotoError<ListObjectsV2Error>>
Consume the iterator and return the number of objects
Sourcepub async fn last(
self,
) -> Result<Option<Object>, RusotoError<ListObjectsV2Error>>
pub async fn last( self, ) -> Result<Option<Object>, RusotoError<ListObjectsV2Error>>
Consume the iterator and return the last object
Sourcepub async fn nth(
&mut self,
n: usize,
) -> Result<Option<Object>, RusotoError<ListObjectsV2Error>>
pub async fn nth( &mut self, n: usize, ) -> Result<Option<Object>, RusotoError<ListObjectsV2Error>>
Consume the iterator and return the nth object
Trait Implementations§
Source§impl Clone for ObjectIter
impl Clone for ObjectIter
Source§fn clone(&self) -> ObjectIter
fn clone(&self) -> ObjectIter
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 ObjectIter
impl !RefUnwindSafe for ObjectIter
impl Send for ObjectIter
impl Sync for ObjectIter
impl Unpin for ObjectIter
impl !UnwindSafe for ObjectIter
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