pub struct ReadOutput {
pub start_offset: i64,
pub batches: Vec<RecordBatch>,
}Expand description
Result of Log::read: the absolute offset of the first batch
returned and the batches themselves.
start_offset falls back to the requested offset when no batches are
returned (e.g., reading at the log end), so callers can resume from
the value without special-casing emptiness.
Fields§
§start_offset: i64Absolute offset of the first record in Self::batches, or the
requested offset when no batches were returned.
batches: Vec<RecordBatch>Decoded batches in offset order. May be empty if the log has no data at or after the requested offset.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReadOutput
impl RefUnwindSafe for ReadOutput
impl Send for ReadOutput
impl Sync for ReadOutput
impl Unpin for ReadOutput
impl UnsafeUnpin for ReadOutput
impl UnwindSafe for ReadOutput
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