pub trait Iteratee {
    // Required methods
    fn new_iterator<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<BoxedIterator>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn new_iterator_with_start<'life0, 'life1, 'async_trait>(
        &'life0 self,
        start: &'life1 [u8]
    ) -> Pin<Box<dyn Future<Output = Result<BoxedIterator>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn new_iterator_with_prefix<'life0, 'life1, 'async_trait>(
        &'life0 self,
        prefix: &'life1 [u8]
    ) -> Pin<Box<dyn Future<Output = Result<BoxedIterator>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn new_iterator_with_start_and_prefix<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        start: &'life1 [u8],
        prefix: &'life2 [u8]
    ) -> Pin<Box<dyn Future<Output = Result<BoxedIterator>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Required Methods§

source

fn new_iterator<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<BoxedIterator>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Creates an iterator over the entire keyspace contained within the key-value database.

source

fn new_iterator_with_start<'life0, 'life1, 'async_trait>( &'life0 self, start: &'life1 [u8] ) -> Pin<Box<dyn Future<Output = Result<BoxedIterator>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Creates an iterator over a subset of database content starting at a particular initial key.

source

fn new_iterator_with_prefix<'life0, 'life1, 'async_trait>( &'life0 self, prefix: &'life1 [u8] ) -> Pin<Box<dyn Future<Output = Result<BoxedIterator>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Creates an iterator over a subset of database content with a particular key prefix.

source

fn new_iterator_with_start_and_prefix<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, start: &'life1 [u8], prefix: &'life2 [u8] ) -> Pin<Box<dyn Future<Output = Result<BoxedIterator>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Creates an iterator over a subset of database content with a particular key prefix starting at a specified key.

Implementors§

source§

impl Iteratee for avalanche_types::subnet::rpc::database::corruptabledb::Database

source§

impl Iteratee for avalanche_types::subnet::rpc::database::memdb::Database

source§

impl Iteratee for DatabaseClient

source§

impl Iteratee for avalanche_types::subnet::rpc::database::versiondb::Database