pub struct LogReader<'log> { /* private fields */ }Expand description
The concrete bounded-memory reader over one log.
Implementations§
Trait Implementations§
Source§impl RecordReader for LogReader<'_>
impl RecordReader for LogReader<'_>
Source§fn next(&mut self) -> Result<Option<StoredRecord<'_>>>
fn next(&mut self) -> Result<Option<StoredRecord<'_>>>
Yields the next matching record, borrowing the reader’s internal
buffer, or
None at the end of the plan.Source§fn continuation(&self) -> u64
fn continuation(&self) -> u64
The resumable continuation: the first position this reader has not
yet yielded or skipped past. Feeding it back as
from in a new
plan resumes without gaps or duplicates.Source§fn next_owned(&mut self) -> Result<Option<OwnedStoredRecord>>
fn next_owned(&mut self) -> Result<Option<OwnedStoredRecord>>
Like
next but returns an owned record, copying the
payload out of the buffer so it can be held across calls.Auto Trait Implementations§
impl<'log> !RefUnwindSafe for LogReader<'log>
impl<'log> !Send for LogReader<'log>
impl<'log> !Sync for LogReader<'log>
impl<'log> !UnwindSafe for LogReader<'log>
impl<'log> Freeze for LogReader<'log>
impl<'log> Unpin for LogReader<'log>
impl<'log> UnsafeUnpin for LogReader<'log>
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