Struct trie_db::triedb::SuspendedTrieDBKeyIterator
source · pub struct SuspendedTrieDBKeyIterator<L: TrieLayout> { /* private fields */ }
Expand description
When there is guaranties the storage backend do not change, this can be use to suspend and restore the iterator.
Implementations§
source§impl<L: TrieLayout> SuspendedTrieDBKeyIterator<L>
impl<L: TrieLayout> SuspendedTrieDBKeyIterator<L>
sourcepub fn unsafe_restore<'a, 'cache>(
self,
db: &'a TrieDB<'a, 'cache, L>
) -> TrieDBKeyIterator<'a, 'cache, L> ⓘ
pub fn unsafe_restore<'a, 'cache>( self, db: &'a TrieDB<'a, 'cache, L> ) -> TrieDBKeyIterator<'a, 'cache, L> ⓘ
Restore iterator.
Auto Trait Implementations§
impl<L> RefUnwindSafe for SuspendedTrieDBKeyIterator<L>where <<L as TrieLayout>::Hash as Hasher>::Out: RefUnwindSafe,
impl<L> !Send for SuspendedTrieDBKeyIterator<L>
impl<L> !Sync for SuspendedTrieDBKeyIterator<L>
impl<L> Unpin for SuspendedTrieDBKeyIterator<L>where <<L as TrieLayout>::Hash as Hasher>::Out: Unpin,
impl<L> UnwindSafe for SuspendedTrieDBKeyIterator<L>where <<L as TrieLayout>::Hash as Hasher>::Out: UnwindSafe,
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