Skip to main content

StorageIterator

Trait StorageIterator 

Source
pub trait StorageIterator {
    // Required method
    fn next<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = StorageResult<Option<Record>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Iterator over storage records.

Required Methods§

Source

fn next<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = StorageResult<Option<Record>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns the next record from this iterator.

Returns Ok(None) when the iterator is exhausted.

Implementors§