Trait reth_trie::trie_cursor::TrieCursorFactory

source ·
pub trait TrieCursorFactory {
    type AccountTrieCursor: TrieCursor;
    type StorageTrieCursor: TrieCursor;

    // Required methods
    fn account_trie_cursor(
        &self,
    ) -> Result<Self::AccountTrieCursor, DatabaseError>;
    fn storage_trie_cursor(
        &self,
        hashed_address: B256,
    ) -> Result<Self::StorageTrieCursor, DatabaseError>;
}
Expand description

Factory for creating trie cursors.

Required Associated Types§

source

type AccountTrieCursor: TrieCursor

The account trie cursor type.

source

type StorageTrieCursor: TrieCursor

The storage trie cursor type.

Required Methods§

source

fn account_trie_cursor(&self) -> Result<Self::AccountTrieCursor, DatabaseError>

Create an account trie cursor.

source

fn storage_trie_cursor( &self, hashed_address: B256, ) -> Result<Self::StorageTrieCursor, DatabaseError>

Create a storage tries cursor.

Implementors§