Trait reth_provider::TrieWriter

source ·
pub trait TrieWriter: Send + Sync {
    // Required method
    fn write_trie_updates(
        &self,
        trie_updates: &TrieUpdates,
    ) -> ProviderResult<usize>;
}
Expand description

Trie Writer

Required Methods§

source

fn write_trie_updates( &self, trie_updates: &TrieUpdates, ) -> ProviderResult<usize>

Writes trie updates to the database.

Returns the number of entries modified.

Implementations on Foreign Types§

source§

impl<'a, T: 'a + TrieWriter + ?Sized> TrieWriter for &'a T
where &'a T: Send + Sync,

source§

fn write_trie_updates( &self, trie_updates: &TrieUpdates, ) -> ProviderResult<usize>

source§

impl<T: TrieWriter + ?Sized> TrieWriter for Box<T>
where Box<T>: Send + Sync,

source§

fn write_trie_updates( &self, trie_updates: &TrieUpdates, ) -> ProviderResult<usize>

source§

impl<T: TrieWriter + ?Sized> TrieWriter for Arc<T>
where Arc<T>: Send + Sync,

source§

fn write_trie_updates( &self, trie_updates: &TrieUpdates, ) -> ProviderResult<usize>

Implementors§

source§

impl<TX: DbTxMut + DbTx> TrieWriter for DatabaseProvider<TX>