pub enum ReadOutput {
Batch(SequencedRecordBatch),
FirstSeqNum(u64),
NextSeqNum(u64),
}Expand description
Reply which can be a batch of records, or a sequence number if the request could not be satisfied.
Variants§
Batch(SequencedRecordBatch)
Batch of records.
This batch can be empty only if a ReadLimit was provided in the associated read request, but the first record
that could have been returned would violate the limit.
FirstSeqNum(u64)
Sequence number for the first record on this stream, in case the requested start_seq_num is smaller.
If returned in a streaming read session, this will be a terminal reply, to signal that there is uncertainty about whether some records may be omitted.
The client can re-establish the session starting at this sequence number.
NextSeqNum(u64)
Sequence number for the next record on this stream, in case the requested start_seq_num was larger.
If returned in a streaming read session, this will be a terminal reply.
Trait Implementations§
Source§impl Clone for ReadOutput
impl Clone for ReadOutput
Source§fn clone(&self) -> ReadOutput
fn clone(&self) -> ReadOutput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
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>
T in a tonic::Request