pub trait AtomicView: Send + Sync {
type LatestView;
// Required method
fn latest_view(&self) -> StorageResult<Self::LatestView>;
}
Expand description
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.
Required Associated Types§
sourcetype LatestView
type LatestView
The type of the latest storage view.
Required Methods§
sourcefn latest_view(&self) -> StorageResult<Self::LatestView>
fn latest_view(&self) -> StorageResult<Self::LatestView>
Returns current the view of the storage.