pub struct LeaderIdAndEpoch {
pub leader_id: i32,
pub leader_epoch: i32,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§leader_id: i32The ID of the current leader or -1 if the leader is unknown.
leader_epoch: i32The latest known leader epoch.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl LeaderIdAndEpoch
impl LeaderIdAndEpoch
pub fn with_leader_id(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 LeaderIdAndEpoch
impl Clone for LeaderIdAndEpoch
Source§fn clone(&self) -> LeaderIdAndEpoch
fn clone(&self) -> LeaderIdAndEpoch
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 LeaderIdAndEpoch
impl Debug for LeaderIdAndEpoch
Source§impl Default for LeaderIdAndEpoch
impl Default for LeaderIdAndEpoch
Source§impl PartialEq for LeaderIdAndEpoch
impl PartialEq for LeaderIdAndEpoch
Source§fn eq(&self, other: &LeaderIdAndEpoch) -> bool
fn eq(&self, other: &LeaderIdAndEpoch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LeaderIdAndEpoch
Auto Trait Implementations§
impl Freeze for LeaderIdAndEpoch
impl RefUnwindSafe for LeaderIdAndEpoch
impl Send for LeaderIdAndEpoch
impl Sync for LeaderIdAndEpoch
impl Unpin for LeaderIdAndEpoch
impl UnsafeUnpin for LeaderIdAndEpoch
impl UnwindSafe for LeaderIdAndEpoch
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