pub trait Qry<'a, K, S>{
// Required method
fn qry(
self,
map: &'a Arc<Map>,
) -> impl Stream<Item = Result<Handle<'_>>> + Send + 'a;
}Expand description
Stream extensions for batched map reads.
Get accepts raw keys, while Qry serializes structured keys before
lookup. Both yield pinned value handles through an asynchronous stream.
Extends a stream of structured keys with serialized batched lookup.
Input keys are encoded and grouped for the engine’s blocking pool. The output stream yields pinned value handles or lookup errors.
Required Methods§
Sourcefn qry(
self,
map: &'a Arc<Map>,
) -> impl Stream<Item = Result<Handle<'_>>> + Send + 'a
fn qry( self, map: &'a Arc<Map>, ) -> impl Stream<Item = Result<Handle<'_>>> + Send + 'a
Fetches this stream’s serialized keys from a map.
The returned stream yields lookup results from automatically sized batches. Serialization is deferred until the stream is polled.
§Panics
Panics if an input key cannot be serialized.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".