pub struct OffsetForLeaderPartition {
pub partition: i32,
pub current_leader_epoch: i32,
pub leader_epoch: i32,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§partition: i32The partition index.
current_leader_epoch: i32An epoch used to fence consumers/replicas with old metadata. If the epoch provided by the client is larger than the current epoch known to the broker, then the UNKNOWN_LEADER_EPOCH error code will be returned. If the provided epoch is smaller, then the FENCED_LEADER_EPOCH error code will be returned.
leader_epoch: i32The epoch to look up an offset for.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl OffsetForLeaderPartition
impl OffsetForLeaderPartition
pub fn with_partition(self, value: i32) -> Self
pub fn with_current_leader_epoch(self, value: i32) -> Self
pub fn with_leader_epoch(self, value: i32) -> 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 OffsetForLeaderPartition
impl Clone for OffsetForLeaderPartition
Source§fn clone(&self) -> OffsetForLeaderPartition
fn clone(&self) -> OffsetForLeaderPartition
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 OffsetForLeaderPartition
impl Debug for OffsetForLeaderPartition
Source§impl Default for OffsetForLeaderPartition
impl Default for OffsetForLeaderPartition
Source§impl PartialEq for OffsetForLeaderPartition
impl PartialEq for OffsetForLeaderPartition
Source§fn eq(&self, other: &OffsetForLeaderPartition) -> bool
fn eq(&self, other: &OffsetForLeaderPartition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OffsetForLeaderPartition
Auto Trait Implementations§
impl Freeze for OffsetForLeaderPartition
impl RefUnwindSafe for OffsetForLeaderPartition
impl Send for OffsetForLeaderPartition
impl Sync for OffsetForLeaderPartition
impl Unpin for OffsetForLeaderPartition
impl UnsafeUnpin for OffsetForLeaderPartition
impl UnwindSafe for OffsetForLeaderPartition
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