Struct fluvio_dataplane_protocol::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>>, 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>>

The aborted transactions.

records: R

The record data.

Implementations

impl FetchablePartitionResponse<RecordSet>[src]

pub fn next_offset_for_fetch(&self) -> Option<Offset>[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: Debug> Debug for FetchablePartitionResponse<R> where
    R: Encoder + Decoder + Default + Debug
[src]

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

Formats the value using the given formatter. Read more

impl<R> Decoder for FetchablePartitionResponse<R> where
    R: Encoder + Decoder + Default + Debug
[src]

fn decode<T>(&mut self, src: &mut T, version: Version) -> Result<(), Error> where
    T: Buf
[src]

fn decode_from<T>(src: &mut T, version: i16) -> Result<Self, Error> where
    Self: Default,
    T: Buf

decode Kafka compliant protocol values from buf

impl<R> Default for FetchablePartitionResponse<R> where
    R: Encoder + Decoder + Default + Debug
[src]

fn default() -> Self[src]

Returns the “default value” for a type. Read more

impl<R> Encoder for FetchablePartitionResponse<R> where
    R: Encoder + Decoder + Default + Debug
[src]

fn encode<T>(&self, dest: &mut T, version: Version) -> Result<(), Error> where
    T: BufMut
[src]

encoding contents for buffer

fn write_size(&self, version: Version) -> usize[src]

size of this object in bytes

fn as_bytes(&self, version: i16) -> Result<Bytes, Error>

Auto Trait Implementations

impl<R> RefUnwindSafe for FetchablePartitionResponse<R> where
    R: RefUnwindSafe

impl<R> Send for FetchablePartitionResponse<R> where
    R: Send

impl<R> Sync for FetchablePartitionResponse<R> where
    R: Sync

impl<R> Unpin for FetchablePartitionResponse<R> where
    R: Unpin

impl<R> UnwindSafe for FetchablePartitionResponse<R> where
    R: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T> Instrument for T[src]

fn instrument(self, span: Span) -> Instrumented<Self>[src]

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

fn in_current_span(self) -> Instrumented<Self>[src]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.