cuprate_txpool::tables

Trait TablesMut

Source
pub trait TablesMut: Tables {
    // Required methods
    fn transaction_blobs_mut(
        &mut self,
    ) -> &mut impl DatabaseRw<TransactionBlobs>;
    fn transaction_infos_mut(
        &mut self,
    ) -> &mut impl DatabaseRw<TransactionInfos>;
    fn cached_verification_state_mut(
        &mut self,
    ) -> &mut impl DatabaseRw<CachedVerificationState>;
    fn spent_key_images_mut(&mut self) -> &mut impl DatabaseRw<SpentKeyImages>;
    fn known_blob_hashes_mut(&mut self) -> &mut impl DatabaseRw<KnownBlobHashes>;
}
Expand description

Object containing all opened Tables in write mode.

This is the same as Tables but for mutable accesses.

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_mut(&mut self) -> &mut impl DatabaseRw<TransactionBlobs>

Access an opened TransactionBlobs database.

Source

fn transaction_infos_mut(&mut self) -> &mut impl DatabaseRw<TransactionInfos>

Access an opened TransactionInfos database.

Source

fn cached_verification_state_mut( &mut self, ) -> &mut impl DatabaseRw<CachedVerificationState>

Access an opened CachedVerificationState database.

Source

fn spent_key_images_mut(&mut self) -> &mut impl DatabaseRw<SpentKeyImages>

Access an opened SpentKeyImages database.

Source

fn known_blob_hashes_mut(&mut self) -> &mut impl DatabaseRw<KnownBlobHashes>

Access an opened 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> TablesMut for (TRANSACTIONBLOBS, TRANSACTIONINFOS, CACHEDVERIFICATIONSTATE, SPENTKEYIMAGES, KNOWNBLOBHASHES)
where TRANSACTIONBLOBS: DatabaseRw<TransactionBlobs>, TRANSACTIONINFOS: DatabaseRw<TransactionInfos>, CACHEDVERIFICATIONSTATE: DatabaseRw<CachedVerificationState>, SPENTKEYIMAGES: DatabaseRw<SpentKeyImages>, KNOWNBLOBHASHES: DatabaseRw<KnownBlobHashes>,

Implementors§