pub struct ColdRead {
pub file: Arc<VlogFile>,
pub vref: VlogRef,
}Expand description
One planned cold-record read in a Store::peek_hash_rows
batch. The pinned file keeps the record readable even if a
compaction retires the file mid-batch.
Fields§
§file: Arc<VlogFile>Pinned vlog file the record lives in.
vref: VlogRefRecord address; the image to fetch is vref.disk_len()
bytes at vref.offset.
Auto Trait Implementations§
impl Freeze for ColdRead
impl RefUnwindSafe for ColdRead
impl Send for ColdRead
impl Sync for ColdRead
impl Unpin for ColdRead
impl UnsafeUnpin for ColdRead
impl UnwindSafe for ColdRead
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