pub struct ReplicaState {
pub replica_id: i32,
pub replica_directory_id: KafkaUuid,
pub log_end_offset: i64,
pub last_fetch_timestamp: i64,
pub last_caught_up_timestamp: i64,
pub _unknown_tagged_fields: Vec<RawTaggedField>,
}Fields§
§replica_id: i32The ID of the replica.
replica_directory_id: KafkaUuidThe replica directory ID of the replica.
log_end_offset: i64The last known log end offset of the follower or -1 if it is unknown.
last_fetch_timestamp: i64The last known leader wall clock time time when a follower fetched from the leader. This is reported as -1 both for the current leader or if it is unknown for a voter.
last_caught_up_timestamp: i64The leader wall clock append time of the offset for which the follower made the most recent fetch request. This is reported as the current time for the leader and -1 if unknown for a voter.
_unknown_tagged_fields: Vec<RawTaggedField>Implementations§
Source§impl ReplicaState
impl ReplicaState
pub fn with_replica_id(self, value: i32) -> Self
pub fn with_replica_directory_id(self, value: KafkaUuid) -> Self
pub fn with_log_end_offset(self, value: i64) -> Self
pub fn with_last_fetch_timestamp(self, value: i64) -> Self
pub fn with_last_caught_up_timestamp(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