cuprate_txpool::tables

Trait 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>);
    fn known_blob_hashes_iter(
        &self,
    ) -> &(impl DatabaseRo<KnownBlobHashes> + DatabaseIter<KnownBlobHashes>);
}
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.

Source

fn known_blob_hashes_iter( &self, ) -> &(impl DatabaseRo<KnownBlobHashes> + DatabaseIter<KnownBlobHashes>)

Access an opened read-only + iterable KnownBlobHashes database.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

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

Implementors§