pub struct CandidateReader { /* private fields */ }Implementations§
Source§impl CandidateReader
impl CandidateReader
Sourcepub fn from_file(file: Box<dyn FileIo>) -> Self
pub fn from_file(file: Box<dyn FileIo>) -> Self
A read-only logical file supplied by a format owner (for committed WAL overlays).
pub fn open(source: &Path) -> Result<Self>
Sourcepub fn scan<E: From<Error>>(
&self,
tree_id: u16,
visitor: impl FnMut(LeafEvent<'_>) -> Result<(), E>,
) -> Result<LeafScanReport, E>
pub fn scan<E: From<Error>>( &self, tree_id: u16, visitor: impl FnMut(LeafEvent<'_>) -> Result<(), E>, ) -> Result<LeafScanReport, E>
Stream independently verified leaf cells. A single page buffer is reused; callback ownership prevents retaining borrowed data across the next read.
Sourcepub fn read_value(
&self,
record: LeafCandidate<'_>,
max_bytes: usize,
) -> Result<Vec<u8>>
pub fn read_value( &self, record: LeafCandidate<'_>, max_bytes: usize, ) -> Result<Vec<u8>>
Materialize at most the caller’s explicit encoded-value allowance. Large values are checked before allocating. No partial overflow is returned.
Auto Trait Implementations§
impl !RefUnwindSafe for CandidateReader
impl !UnwindSafe for CandidateReader
impl Freeze for CandidateReader
impl Send for CandidateReader
impl Sync for CandidateReader
impl Unpin for CandidateReader
impl UnsafeUnpin for CandidateReader
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