Trait cuprate_txpool::tables::TablesIter

source ·
pub trait TablesIter: Tables {
    // Required methods
    fn transaction_blobs_iter(
        &self,
    ) -> &(impl DatabaseRo<TransactionBlobs> + DatabaseIter<TransactionBlobs>);
    fn transaction_infos_iter(
        &self,
    ) -> &(impl DatabaseRo<TransactionInfos> + DatabaseIter<TransactionInfos>);
    fn cached_verification_state_iter(
        &self,
    ) -> &(impl DatabaseRo<CachedVerificationState> + DatabaseIter<CachedVerificationState>);
    fn spent_key_images_iter(
        &self,
    ) -> &(impl DatabaseRo<SpentKeyImages> + DatabaseIter<SpentKeyImages>);
}
Expand description

Object containing all opened Tables in read + iter mode.

This is the same as Tables but includes _iter() variants.

Note that this trait is a supertrait of Tables, as in it can use all of its functions as well.

See Tables for documentation - this trait exists for the same reasons.

Required Methods§

source

fn transaction_blobs_iter( &self, ) -> &(impl DatabaseRo<TransactionBlobs> + DatabaseIter<TransactionBlobs>)

Access an opened read-only + iterable TransactionBlobs database.

source

fn transaction_infos_iter( &self, ) -> &(impl DatabaseRo<TransactionInfos> + DatabaseIter<TransactionInfos>)

Access an opened read-only + iterable TransactionInfos database.

source

fn cached_verification_state_iter( &self, ) -> &(impl DatabaseRo<CachedVerificationState> + DatabaseIter<CachedVerificationState>)

Access an opened read-only + iterable CachedVerificationState database.

source

fn spent_key_images_iter( &self, ) -> &(impl DatabaseRo<SpentKeyImages> + DatabaseIter<SpentKeyImages>)

Access an opened read-only + iterable SpentKeyImages database.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<TRANSACTIONBLOBS, TRANSACTIONINFOS, CACHEDVERIFICATIONSTATE, SPENTKEYIMAGES> TablesIter for (TRANSACTIONBLOBS, TRANSACTIONINFOS, CACHEDVERIFICATIONSTATE, SPENTKEYIMAGES)

Implementors§