reth::providers

Trait TrieWriter

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

Trie Writer

Required Methods§

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

Writes trie updates to the database.

Returns the number of entries modified.

Implementations on Foreign Types§

§

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

§

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

§

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

§

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

§

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

§

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

Implementors§

Source§

impl<TX, N> TrieWriter for DatabaseProvider<TX, N>
where TX: DbTxMut + DbTx + 'static, N: NodeTypes,