reth_provider

Trait 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 + 'static, N: NodeTypes> TrieWriter for DatabaseProvider<TX, N>