pub enum ReadOutput {
Batch(SequencedRecordBatch),
FirstSeqNum(u64),
NextSeqNum(u64),
}Expand description
Batch of records, or a sequence number if the read could not be satisfied. An empty batch or a sequence number output will be a terminal message in a session.
Variants§
Batch(SequencedRecordBatch)
Batch of records. It can only be empty when not in a session context (which implies a limit), if the first record that could have been retrieved would violate the limit.
FirstSeqNum(u64)
Sequence number for the first record on this stream.
Typically this will be returned when the requested start_seq_num was smaller.
It may also be returned during a session, if the stream gets concurrently trimmed.
NextSeqNum(u64)
Sequence number that will be assigned to the next record on this stream.
This will be returned either because the requested start_seq_num was larger,
or in case of a limited read, equal to it.
Trait Implementations§
Source§impl Clone for ReadOutput
impl Clone for ReadOutput
Source§fn clone(&self) -> ReadOutput
fn clone(&self) -> ReadOutput
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ReadOutput
impl RefUnwindSafe for ReadOutput
impl Send for ReadOutput
impl Sync for ReadOutput
impl Unpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request