pub struct Recorder<L: TrieLayout> { /* private fields */ }
Expand description
Records trie nodes as they pass it.
Implementations
Trait Implementations
sourceimpl<L: Debug + TrieLayout> Debug for Recorder<L>
impl<L: Debug + TrieLayout> Debug for Recorder<L>
sourceimpl<L: TrieLayout> Default for Recorder<L>
impl<L: TrieLayout> Default for Recorder<L>
sourceimpl<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>
sourcefn record<'a>(&mut self, access: TrieAccess<'a, TrieHash<L>>)
fn record<'a>(&mut self, access: TrieAccess<'a, TrieHash<L>>)
Record the given TrieAccess
. Read more
sourcefn 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 more
Auto Trait Implementations
impl<L> RefUnwindSafe for Recorder<L> where
<<L as TrieLayout>::Hash as Hasher>::Out: RefUnwindSafe,
impl<L> Send for Recorder<L>
impl<L> Sync for Recorder<L>
impl<L> Unpin for Recorder<L> where
<<L as TrieLayout>::Hash as Hasher>::Out: Unpin,
impl<L> UnwindSafe for Recorder<L> where
<<L as TrieLayout>::Hash as Hasher>::Out: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more