pub struct PartitionData {
pub partition: i32,
pub state_epoch: i32,
pub leader_epoch: i32,
pub start_offset: i64,
pub delivery_complete_count: i32,
pub state_batches: Vec<StateBatch>,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§partition: i32The partition index.
state_epoch: i32The state epoch of the share-partition.
leader_epoch: i32The leader epoch of the share-partition.
start_offset: i64The share-partition start offset, or -1 if the start offset is not being written.
delivery_complete_count: i32The number of offsets greater than or equal to share-partition start offset for which delivery has been completed.
state_batches: Vec<StateBatch>The state batches for the share-partition.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl PartitionData
impl PartitionData
pub fn with_partition(self, value: i32) -> Self
pub fn with_state_epoch(self, value: i32) -> Self
pub fn with_leader_epoch(self, value: i32) -> Self
pub fn with_start_offset(self, value: i64) -> Self
pub fn with_delivery_complete_count(self, value: i32) -> Self
pub fn with_state_batches(self, value: Vec<StateBatch>) -> 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 PartitionData
impl Clone for PartitionData
Source§fn clone(&self) -> PartitionData
fn clone(&self) -> PartitionData
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 PartitionData
impl Debug for PartitionData
Source§impl Default for PartitionData
impl Default for PartitionData
Source§impl PartialEq for PartitionData
impl PartialEq for PartitionData
Source§fn eq(&self, other: &PartitionData) -> bool
fn eq(&self, other: &PartitionData) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PartitionData
Auto Trait Implementations§
impl Freeze for PartitionData
impl RefUnwindSafe for PartitionData
impl Send for PartitionData
impl Sync for PartitionData
impl Unpin for PartitionData
impl UnsafeUnpin for PartitionData
impl UnwindSafe for PartitionData
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