pub struct FetchPartition {
pub partition: i32,
pub current_leader_epoch: i32,
pub fetch_offset: i64,
pub last_fetched_epoch: i32,
pub log_start_offset: i64,
pub partition_max_bytes: i32,
pub replica_directory_id: KafkaUuid,
pub high_watermark: i64,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§partition: i32The partition index.
current_leader_epoch: i32The current leader epoch of the partition.
fetch_offset: i64The message offset.
last_fetched_epoch: i32The epoch of the last fetched record or -1 if there is none.
log_start_offset: i64The earliest available offset of the follower replica. The field is only used when the request is sent by the follower.
partition_max_bytes: i32The maximum bytes to fetch from this partition. See KIP-74 for cases where this limit may not be honored.
replica_directory_id: KafkaUuidThe directory id of the follower fetching.
high_watermark: i64The high-watermark known by the replica. -1 if the high-watermark is not known and 9223372036854775807 if the feature is not supported.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl FetchPartition
impl FetchPartition
pub fn with_partition(self, value: i32) -> Self
pub fn with_current_leader_epoch(self, value: i32) -> Self
pub fn with_fetch_offset(self, value: i64) -> Self
pub fn with_last_fetched_epoch(self, value: i32) -> Self
pub fn with_log_start_offset(self, value: i64) -> Self
pub fn with_partition_max_bytes(self, value: i32) -> Self
pub fn with_replica_directory_id(self, value: KafkaUuid) -> Self
pub fn with_high_watermark(self, value: i64) -> 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 FetchPartition
impl Clone for FetchPartition
Source§fn clone(&self) -> FetchPartition
fn clone(&self) -> FetchPartition
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 FetchPartition
impl Debug for FetchPartition
Source§impl Default for FetchPartition
impl Default for FetchPartition
Source§impl PartialEq for FetchPartition
impl PartialEq for FetchPartition
Source§fn eq(&self, other: &FetchPartition) -> bool
fn eq(&self, other: &FetchPartition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FetchPartition
Auto Trait Implementations§
impl Freeze for FetchPartition
impl RefUnwindSafe for FetchPartition
impl Send for FetchPartition
impl Sync for FetchPartition
impl Unpin for FetchPartition
impl UnsafeUnpin for FetchPartition
impl UnwindSafe for FetchPartition
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