Struct sp_state_machine::StorageChanges
source · pub struct StorageChanges<H: Hasher> {
pub main_storage_changes: StorageCollection,
pub child_storage_changes: ChildStorageCollection,
pub offchain_storage_changes: OffchainChangesCollection,
pub transaction: BackendTransaction<H>,
pub transaction_storage_root: H::Out,
pub transaction_index_changes: Vec<IndexOperation>,
}Expand description
A storage changes structure that can be generated by the data collected in OverlayedChanges.
This contains all the changes to the storage and transactions to apply theses changes to the backend.
Fields§
§main_storage_changes: StorageCollectionAll changes to the main storage.
A value of None means that it was deleted.
child_storage_changes: ChildStorageCollectionAll changes to the child storages.
offchain_storage_changes: OffchainChangesCollectionOffchain state changes to write to the offchain database.
transaction: BackendTransaction<H>A transaction for the backend that contains all changes from
main_storage_changes and from
child_storage_changes.
offchain_storage_changes.
transaction_storage_root: H::OutThe storage root after applying the transaction.
transaction_index_changes: Vec<IndexOperation>Changes to the transaction index,
Implementations§
source§impl<H: Hasher> StorageChanges<H>
impl<H: Hasher> StorageChanges<H>
sourcepub fn into_inner(
self
) -> (StorageCollection, ChildStorageCollection, OffchainChangesCollection, BackendTransaction<H>, H::Out, Vec<IndexOperation>)
pub fn into_inner( self ) -> (StorageCollection, ChildStorageCollection, OffchainChangesCollection, BackendTransaction<H>, H::Out, Vec<IndexOperation>)
Deconstruct into the inner values
Trait Implementations§
Auto Trait Implementations§
impl<H> RefUnwindSafe for StorageChanges<H>where H: RefUnwindSafe, <H as Hasher>::Out: RefUnwindSafe,
impl<H> Send for StorageChanges<H>
impl<H> Sync for StorageChanges<H>
impl<H> Unpin for StorageChanges<H>where H: Unpin, <H as Hasher>::Out: Unpin,
impl<H> UnwindSafe for StorageChanges<H>where H: UnwindSafe, <H as Hasher>::Out: UnwindSafe,
Blanket Implementations§
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>,
§impl<T> Pointable for T
impl<T> Pointable for T
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.