Skip to main content

TrieWriter

Trait TrieWriter 

Source
pub trait TrieWriter: Send {
    // Required method
    fn write_trie_updates_sorted(
        &self,
        trie_updates: &TrieUpdatesSorted,
    ) -> ProviderResult<usize>;

    // Provided method
    fn write_trie_updates(
        &self,
        trie_updates: TrieUpdates,
    ) -> ProviderResult<usize> { ... }
}
Expand description

Trie Writer

Required Methods§

Source

fn write_trie_updates_sorted( &self, trie_updates: &TrieUpdatesSorted, ) -> ProviderResult<usize>

Writes trie updates to the database with already sorted updates.

Returns the number of entries modified.

Provided 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,

Source§

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

Source§

fn write_trie_updates_sorted( &self, trie_updates: &TrieUpdatesSorted, ) -> ProviderResult<usize>

Source§

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

Source§

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

Source§

fn write_trie_updates_sorted( &self, trie_updates: &TrieUpdatesSorted, ) -> ProviderResult<usize>

Implementors§