pub struct Recorder<L: TrieLayout> { /* private fields */ }
Expand description
Records trie nodes as they pass it.
Implementations§
Trait Implementations§
source§impl<L: TrieLayout> Default for Recorder<L>
impl<L: TrieLayout> Default for Recorder<L>
source§impl<L: TrieLayout> TrieRecorder<<<L as TrieLayout>::Hash as Hasher>::Out> for Recorder<L>
impl<L: TrieLayout> TrieRecorder<<<L as TrieLayout>::Hash as Hasher>::Out> for Recorder<L>
source§fn record<'a>(&mut self, access: TrieAccess<'a, TrieHash<L>>)
fn record<'a>(&mut self, access: TrieAccess<'a, TrieHash<L>>)
Record the given
TrieAccess
. Read moresource§fn trie_nodes_recorded_for_key(&self, key: &[u8]) -> RecordedForKey
fn trie_nodes_recorded_for_key(&self, key: &[u8]) -> RecordedForKey
Check if we have recorded any trie nodes for the given
key
. Read moreAuto Trait Implementations§
impl<L> Freeze for Recorder<L>
impl<L> RefUnwindSafe for Recorder<L>
impl<L> Send for Recorder<L>
impl<L> Sync for Recorder<L>
impl<L> Unpin for Recorder<L>
impl<L> UnwindSafe for Recorder<L>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more