Struct sp_state_machine::StorageChanges
source · [−]pub struct StorageChanges<Transaction, H: Hasher> {
pub main_storage_changes: StorageCollection,
pub child_storage_changes: ChildStorageCollection,
pub offchain_storage_changes: OffchainChangesCollection,
pub transaction: Transaction,
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: StorageCollection
All changes to the main storage.
A value of None
means that it was deleted.
child_storage_changes: ChildStorageCollection
All changes to the child storages.
offchain_storage_changes: OffchainChangesCollection
Offchain state changes to write to the offchain database.
transaction: Transaction
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::Out
The storage root after applying the transaction.
transaction_index_changes: Vec<IndexOperation>
Changes to the transaction index,
Implementations
pub fn into_inner(
self
) -> (StorageCollection, ChildStorageCollection, OffchainChangesCollection, Transaction, H::Out, Vec<IndexOperation>)
pub fn into_inner(
self
) -> (StorageCollection, ChildStorageCollection, OffchainChangesCollection, Transaction, H::Out, Vec<IndexOperation>)
Deconstruct into the inner values
Trait Implementations
Auto Trait Implementations
impl<Transaction, H> RefUnwindSafe for StorageChanges<Transaction, H> where
Transaction: RefUnwindSafe,
<H as Hasher>::Out: RefUnwindSafe,
impl<Transaction, H> Send for StorageChanges<Transaction, H> where
Transaction: Send,
impl<Transaction, H> Sync for StorageChanges<Transaction, H> where
Transaction: Sync,
impl<Transaction, H> Unpin for StorageChanges<Transaction, H> where
Transaction: Unpin,
<H as Hasher>::Out: Unpin,
impl<Transaction, H> UnwindSafe for StorageChanges<Transaction, H> where
Transaction: UnwindSafe,
<H as Hasher>::Out: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘimpl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘimpl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
The counterpart to unchecked_from
.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more