Trait cuprate_txpool::tables::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>;
}
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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<TRANSACTIONBLOBS, TRANSACTIONINFOS, CACHEDVERIFICATIONSTATE, SPENTKEYIMAGES> TablesMut for (TRANSACTIONBLOBS, TRANSACTIONINFOS, CACHEDVERIFICATIONSTATE, SPENTKEYIMAGES)
where TRANSACTIONBLOBS: DatabaseRw<TransactionBlobs>, TRANSACTIONINFOS: DatabaseRw<TransactionInfos>, CACHEDVERIFICATIONSTATE: DatabaseRw<CachedVerificationState>, SPENTKEYIMAGES: DatabaseRw<SpentKeyImages>,

Implementors§