pub trait RangeScan: Send {
// Required method
fn next_batch(
&mut self,
max_items: usize,
) -> impl Future<Output = Result<RangeScanBatch, String>> + Send;
}Expand description
Owned pull-based range cursor for query RPCs.
Implementations own any state needed to produce batches, allowing query handlers to pull rows lazily without borrowing the engine.
Required Methods§
Sourcefn next_batch(
&mut self,
max_items: usize,
) -> impl Future<Output = Result<RangeScanBatch, String>> + Send
fn next_batch( &mut self, max_items: usize, ) -> impl Future<Output = Result<RangeScanBatch, String>> + Send
Pull up to max_items rows. Returning an empty rows batch marks EOF.
EOF may carry non-empty extra with final query metadata.
extra is emitted with the response frame built from the same batch.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".