pub struct AcknowledgementBatch {
pub first_offset: i64,
pub last_offset: i64,
pub acknowledge_types: Vec<i8>,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§first_offset: i64First offset of batch of records to acknowledge.
last_offset: i64Last offset (inclusive) of batch of records to acknowledge.
acknowledge_types: Vec<i8>Array of acknowledge types - 0:Gap,1:Accept,2:Release,3:Reject,4:Renew.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl AcknowledgementBatch
impl AcknowledgementBatch
pub fn with_first_offset(self, value: i64) -> Self
pub fn with_last_offset(self, value: i64) -> Self
pub fn with_acknowledge_types(self, value: Vec<i8>) -> Self
pub fn read(buf: &mut Bytes, _version: i16) -> Result<Self>
pub fn write(&self, buf: &mut BytesMut, _version: i16) -> Result<()>
pub fn encoded_len(&self, _version: i16) -> Result<usize>
Trait Implementations§
Source§impl Clone for AcknowledgementBatch
impl Clone for AcknowledgementBatch
Source§fn clone(&self) -> AcknowledgementBatch
fn clone(&self) -> AcknowledgementBatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AcknowledgementBatch
impl Debug for AcknowledgementBatch
Source§impl Default for AcknowledgementBatch
impl Default for AcknowledgementBatch
Source§impl PartialEq for AcknowledgementBatch
impl PartialEq for AcknowledgementBatch
Source§fn eq(&self, other: &AcknowledgementBatch) -> bool
fn eq(&self, other: &AcknowledgementBatch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AcknowledgementBatch
Auto Trait Implementations§
impl Freeze for AcknowledgementBatch
impl RefUnwindSafe for AcknowledgementBatch
impl Send for AcknowledgementBatch
impl Sync for AcknowledgementBatch
impl Unpin for AcknowledgementBatch
impl UnsafeUnpin for AcknowledgementBatch
impl UnwindSafe for AcknowledgementBatch
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