pub trait StateStoreGet: StaticSendSync {
// Required method
fn on_key_value<'a, O: Send + 'a>(
&'a self,
key: TableKey<Bytes>,
read_options: ReadOptions,
on_key_value_fn: impl KeyValueFn<'a, O>,
) -> impl StorageFuture<'a, Option<O>>;
}Required Methods§
fn on_key_value<'a, O: Send + 'a>( &'a self, key: TableKey<Bytes>, read_options: ReadOptions, on_key_value_fn: impl KeyValueFn<'a, O>, ) -> impl StorageFuture<'a, Option<O>>
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.