Struct fluvio::dataplane::fetch::FetchablePartitionResponse [−][src]
pub struct FetchablePartitionResponse<R> where
R: Encoder + Decoder + Default + Debug, { pub partition_index: i32, pub error_code: ErrorCode, pub high_watermark: i64, pub last_stable_offset: i64, pub next_filter_offset: i64, pub log_start_offset: i64, pub aborted: Option<Vec<AbortedTransaction, Global>>, pub records: R, }
Fields
partition_index: i32
The partiiton index.
error_code: ErrorCode
The error code, or 0 if there was no fetch error
high_watermark: i64
The current high water mark.
last_stable_offset: i64
👎 Deprecated since 0.4.0:
Please use high_watermark
The last stable offset (or LSO) of the partition which is inherited from Kafka semamntics
next_filter_offset: i64
next offset to fetch in case of filter consumer should return that back to SPU, othewise SPU will re-turn same filter records
log_start_offset: i64
The current log start offset.
aborted: Option<Vec<AbortedTransaction, Global>>
The aborted transactions.
records: R
The record data.
Implementations
impl FetchablePartitionResponse<RecordSet>
[src]
impl FetchablePartitionResponse<RecordSet>
[src]pub fn next_offset_for_fetch(&self) -> Option<i64>
[src]
offset that will be use for fetching rest of offsets this will be 1 greater than last offset of previous query If all records have been read then it will be either HW or LEO
Trait Implementations
impl<R> Decoder for FetchablePartitionResponse<R> where
R: Encoder + Decoder + Default + Debug,
[src]
impl<R> Decoder for FetchablePartitionResponse<R> where
R: Encoder + Decoder + Default + Debug,
[src]impl<R> Default for FetchablePartitionResponse<R> where
R: Encoder + Decoder + Default + Debug,
[src]
impl<R> Default for FetchablePartitionResponse<R> where
R: Encoder + Decoder + Default + Debug,
[src]pub fn default() -> FetchablePartitionResponse<R>
[src]
impl<R> Encoder for FetchablePartitionResponse<R> where
R: Encoder + Decoder + Default + Debug,
[src]
impl<R> Encoder for FetchablePartitionResponse<R> where
R: Encoder + Decoder + Default + Debug,
[src]impl FileWrite for FetchablePartitionResponse<FileRecordSet>
[src]
impl FileWrite for FetchablePartitionResponse<FileRecordSet>
[src]pub fn file_encode(
&self,
src: &mut BytesMut,
data: &mut Vec<StoreValue, Global>,
version: i16
) -> Result<(), Error>
[src]
&self,
src: &mut BytesMut,
data: &mut Vec<StoreValue, Global>,
version: i16
) -> Result<(), Error>
Auto Trait Implementations
impl<R> RefUnwindSafe for FetchablePartitionResponse<R> where
R: RefUnwindSafe,
impl<R> RefUnwindSafe for FetchablePartitionResponse<R> where
R: RefUnwindSafe,
impl<R> Send for FetchablePartitionResponse<R> where
R: Send,
impl<R> Send for FetchablePartitionResponse<R> where
R: Send,
impl<R> Sync for FetchablePartitionResponse<R> where
R: Sync,
impl<R> Sync for FetchablePartitionResponse<R> where
R: Sync,
impl<R> Unpin for FetchablePartitionResponse<R> where
R: Unpin,
impl<R> Unpin for FetchablePartitionResponse<R> where
R: Unpin,
impl<R> UnwindSafe for FetchablePartitionResponse<R> where
R: UnwindSafe,
impl<R> UnwindSafe for FetchablePartitionResponse<R> where
R: UnwindSafe,
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]