fuel_core_txpool::ports

Trait AtomicView

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

source

type LatestView

The type of the latest storage view.

Required Methods§

source

fn latest_view(&self) -> Result<Self::LatestView, Error>

Returns current the view of the storage.

Implementors§