Skip to main content

ColdBatchReader

Trait ColdBatchReader 

Source
pub trait ColdBatchReader {
    // Required method
    fn read_batch(&mut self, reads: &[ColdRead]) -> Result<(Vec<Vec<u8>>, u64)>;
}
Expand description

The read-issuance half of a cold batch: fetch every record image, in reads order. SyncColdRead is the ordered positional-read loop (poller reactors + embedded); the server’s io_uring backend submits the batch to a secondary ring instead.

Required Methods§

Source

fn read_batch(&mut self, reads: &[ColdRead]) -> Result<(Vec<Vec<u8>>, u64)>

Fetch each reads[i]’s raw image (vref.disk_len() bytes at vref.offset, unverified — the store runs verify_image + decode on completion). Returns the images plus the number of kernel submissions made (1 for the sync loop, ceil(n / ring entries) for a ring).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§