fuel_core_storage::transactional

Trait AtomicView

source
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§

source

type LatestView

The type of the latest storage view.

Required Methods§

source

fn latest_view(&self) -> StorageResult<Self::LatestView>

Returns current the view of the storage.

Implementors§