pub struct ReplicaState {
pub replica_id: i32,
pub replica_epoch: i64,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§replica_id: i32The replica ID of the follower, or -1 if this request is from a consumer.
replica_epoch: i64The epoch of this follower, or -1 if not available.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl ReplicaState
impl ReplicaState
pub fn with_replica_id(self, value: i32) -> Self
pub fn with_replica_epoch(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 ReplicaState
impl Clone for ReplicaState
Source§fn clone(&self) -> ReplicaState
fn clone(&self) -> ReplicaState
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 ReplicaState
impl Debug for ReplicaState
Source§impl Default for ReplicaState
impl Default for ReplicaState
Source§impl PartialEq for ReplicaState
impl PartialEq for ReplicaState
Source§fn eq(&self, other: &ReplicaState) -> bool
fn eq(&self, other: &ReplicaState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReplicaState
Auto Trait Implementations§
impl Freeze for ReplicaState
impl RefUnwindSafe for ReplicaState
impl Send for ReplicaState
impl Sync for ReplicaState
impl Unpin for ReplicaState
impl UnsafeUnpin for ReplicaState
impl UnwindSafe for ReplicaState
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