pub trait QueryState {
// Required method
fn query_state(
&self,
address: &ContentAddress,
key: &Key,
) -> impl Future<Output = Result<Vec<Word>>> + Send;
}
Expand description
Storage trait for reading state.
Required Methods§
Sourcefn query_state(
&self,
address: &ContentAddress,
key: &Key,
) -> impl Future<Output = Result<Vec<Word>>> + Send
fn query_state( &self, address: &ContentAddress, key: &Key, ) -> impl Future<Output = Result<Vec<Word>>> + Send
Query the state of a content address.
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.