pub struct StorageTransactionCache<Transaction, H: Hasher> { /* private fields */ }
Expand description
Storage transactions are calculated as part of the storage_root
.
These transactions can be reused for importing the block into the
storage. So, we cache them to not require a recomputation of those transactions.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<Transaction, H> RefUnwindSafe for StorageTransactionCache<Transaction, H>where Transaction: RefUnwindSafe, <H as Hasher>::Out: RefUnwindSafe,
impl<Transaction, H> Send for StorageTransactionCache<Transaction, H>where Transaction: Send,
impl<Transaction, H> Sync for StorageTransactionCache<Transaction, H>where Transaction: Sync,
impl<Transaction, H> Unpin for StorageTransactionCache<Transaction, H>where Transaction: Unpin, <H as Hasher>::Out: Unpin,
impl<Transaction, H> UnwindSafe for StorageTransactionCache<Transaction, H>where Transaction: UnwindSafe, <H 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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
impl<T, Outer> IsWrappedBy<Outer> for Twhere Outer: AsRef<T> + AsMut<T> + From<T>, T: From<Outer>,
source§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere T: UncheckedFrom<S>,
source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from
.