pub struct SyncColdRead;Expand description
The default reader: one ordered pread per record.
Trait Implementations§
Source§impl ColdBatchReader for SyncColdRead
impl ColdBatchReader for SyncColdRead
Source§fn read_batch(&mut self, reads: &[ColdRead]) -> Result<(Vec<Vec<u8>>, u64)>
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).Auto Trait Implementations§
impl Freeze for SyncColdRead
impl RefUnwindSafe for SyncColdRead
impl Send for SyncColdRead
impl Sync for SyncColdRead
impl Unpin for SyncColdRead
impl UnsafeUnpin for SyncColdRead
impl UnwindSafe for SyncColdRead
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more