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