Skip to main content

LogReader

Struct LogReader 

Source
pub struct LogReader<'log> { /* private fields */ }
Expand description

The concrete bounded-memory reader over one log.

Implementations§

Source§

impl<'log> LogReader<'log>

Source

pub fn max_buffer_bytes(&self) -> usize

Largest cursor buffer observed, for the peak-memory tests. This is the reader’s entire record-dependent allocation.

Trait Implementations§

Source§

impl Debug for LogReader<'_>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl RecordReader for LogReader<'_>

Source§

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

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>>

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.