reth_storage_api

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§