StorageTrieWriter

Trait StorageTrieWriter 

pub trait StorageTrieWriter: Send + Sync {
    // Required method
    fn write_storage_trie_updates<'a>(
        &self,
        storage_tries: impl Iterator<Item = (&'a FixedBytes<32>, &'a StorageTrieUpdates)>,
    ) -> Result<usize, ProviderError>;
}
Expand description

Storage Trie Writer

Required Methods§

fn write_storage_trie_updates<'a>( &self, storage_tries: impl Iterator<Item = (&'a FixedBytes<32>, &'a StorageTrieUpdates)>, ) -> Result<usize, ProviderError>

Writes storage trie updates from the given storage trie map.

First sorts the storage trie updates by the hashed address key, writing in sorted order.

Returns the number of entries modified.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

§

impl<'b, T> StorageTrieWriter for &'b T
where T: 'b + StorageTrieWriter + ?Sized, &'b T: Send + Sync,

§

fn write_storage_trie_updates<'a>( &self, storage_tries: impl Iterator<Item = (&'a FixedBytes<32>, &'a StorageTrieUpdates)>, ) -> Result<usize, ProviderError>

§

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

§

fn write_storage_trie_updates<'a>( &self, storage_tries: impl Iterator<Item = (&'a FixedBytes<32>, &'a StorageTrieUpdates)>, ) -> Result<usize, ProviderError>

§

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

§

fn write_storage_trie_updates<'a>( &self, storage_tries: impl Iterator<Item = (&'a FixedBytes<32>, &'a StorageTrieUpdates)>, ) -> Result<usize, ProviderError>

Implementors§

Source§

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