pub trait AtomicView: Send + Sync {
type LatestView;
// Required method
fn latest_view(&self) -> Result<Self::LatestView, Error>;
}
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) -> Result<Self::LatestView, Error>
fn latest_view(&self) -> Result<Self::LatestView, Error>
Returns current the view of the storage.