pub trait StateStoreRead: StateStoreGet + StaticSendSync {
type Iter: StateStoreReadIter;
type RevIter: StateStoreReadIter;
// Required methods
fn iter(
&self,
key_range: TableKeyRange,
read_options: ReadOptions,
) -> impl StorageFuture<'_, Self::Iter>;
fn rev_iter(
&self,
key_range: TableKeyRange,
read_options: ReadOptions,
) -> impl StorageFuture<'_, Self::RevIter>;
}
Required Associated Types§
Required Methods§
Sourcefn iter(
&self,
key_range: TableKeyRange,
read_options: ReadOptions,
) -> impl StorageFuture<'_, Self::Iter>
fn iter( &self, key_range: TableKeyRange, read_options: ReadOptions, ) -> impl StorageFuture<'_, Self::Iter>
Opens and returns an iterator for given prefix_hint
and full_key_range
Internally, prefix_hint
will be used to for checking bloom_filter
and
full_key_range
used for iter. (if the prefix_hint
not None, it should be be included
in key_range
) The returned iterator will iterate data based on a snapshot
corresponding to the given epoch
.
fn rev_iter( &self, key_range: TableKeyRange, read_options: ReadOptions, ) -> impl StorageFuture<'_, Self::RevIter>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.