Module transactional

Source
Expand description

The primitives to work with storage in transactional mode.

Structs§

InMemoryTransaction
In memory transaction accumulates Changes over the storage.
ReferenceBytesKey
The wrapper around the Vec<u8> that supports Borrow<[u8]>. It allows the use of bytes slices to do lookups in the collections.

Enums§

ConflictPolicy
The policy to resolve the conflict during committing of the changes.

Traits§

AtomicView
Provides an atomic view of the storage at the latest height at the moment of view instantiation. All modifications to the storage after this point will not affect the view.
HistoricalView
Provides an atomic view of the storage at the given height. The view is guaranteed to be unmodifiable for the given height.
IntoTransaction
The trait to convert the type into the storage transaction.
Modifiable
The type is modifiable and may commit the changes into the storage.
ReadTransaction
Creates a new instance of the storage read transaction.
WriteTransaction
Creates a new instance of the storage write transaction.

Type Aliases§

Changes
The type describing the list of changes to the storage.
StorageTransaction
Storage transaction on top of the storage.