Struct async_memcached::MetadumpIter
source · pub struct MetadumpIter<'a> { /* private fields */ }
Expand description
Asynchronous iterator for metadump operations.
Implementations§
source§impl<'a> MetadumpIter<'a>
impl<'a> MetadumpIter<'a>
sourcepub async fn next(&mut self) -> Option<Result<KeyMetadata, Error>>
pub async fn next(&mut self) -> Option<Result<KeyMetadata, Error>>
Gets the next result for the current operation.
If there is another key in the dump, Some(Ok(KeyMetadata))
will be returned. If there was
an error while attempting to start the metadump operation, or if there was a general
network/protocol-level error, Some(Err(Error))
will be returned.
Otherwise, None
will be returned and signals the end of the iterator. Subsequent calls
will return None
.
Auto Trait Implementations§
impl<'a> RefUnwindSafe for MetadumpIter<'a>
impl<'a> Send for MetadumpIter<'a>
impl<'a> Sync for MetadumpIter<'a>
impl<'a> Unpin for MetadumpIter<'a>
impl<'a> !UnwindSafe for MetadumpIter<'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