pub struct AcknowledgePartition {
pub partition_index: i32,
pub acknowledgement_batches: Vec<AcknowledgementBatch>,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§partition_index: i32The partition index.
acknowledgement_batches: Vec<AcknowledgementBatch>Record batches to acknowledge.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl AcknowledgePartition
impl AcknowledgePartition
pub fn with_partition_index(self, value: i32) -> Self
pub fn with_acknowledgement_batches( self, value: Vec<AcknowledgementBatch>, ) -> 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 AcknowledgePartition
impl Clone for AcknowledgePartition
Source§fn clone(&self) -> AcknowledgePartition
fn clone(&self) -> AcknowledgePartition
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 AcknowledgePartition
impl Debug for AcknowledgePartition
Source§impl Default for AcknowledgePartition
impl Default for AcknowledgePartition
Source§impl PartialEq for AcknowledgePartition
impl PartialEq for AcknowledgePartition
Source§fn eq(&self, other: &AcknowledgePartition) -> bool
fn eq(&self, other: &AcknowledgePartition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AcknowledgePartition
Auto Trait Implementations§
impl Freeze for AcknowledgePartition
impl RefUnwindSafe for AcknowledgePartition
impl Send for AcknowledgePartition
impl Sync for AcknowledgePartition
impl Unpin for AcknowledgePartition
impl UnsafeUnpin for AcknowledgePartition
impl UnwindSafe for AcknowledgePartition
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