pub struct FollowerReplicationStatus {
pub connected: bool,
pub leader: String,
pub replication_lag_ms: u64,
pub last_replayed_offset: u64,
pub leader_offset: u64,
pub total_replayed: u64,
pub corrupted_skipped: u64,
pub reconnect_count: u64,
pub snapshots_received: u64,
}Expand description
Follower-side replication status exposed via the health endpoint.
Fields§
§connected: boolWhether the receiver is currently connected to the leader.
leader: StringAddress of the leader replication port.
replication_lag_ms: u64Estimated replication lag in milliseconds (offset-based proxy).
last_replayed_offset: u64Last WAL offset successfully replayed.
leader_offset: u64Leader’s current offset (from CaughtUp or latest entry).
total_replayed: u64Total entries replayed since this follower started.
corrupted_skipped: u64Number of entries skipped due to CRC32 validation failure.
reconnect_count: u64Number of reconnection attempts since startup.
snapshots_received: u64Number of snapshot catch-ups completed since startup.
Trait Implementations§
Source§impl Clone for FollowerReplicationStatus
impl Clone for FollowerReplicationStatus
Source§fn clone(&self) -> FollowerReplicationStatus
fn clone(&self) -> FollowerReplicationStatus
Returns a duplicate of the value. Read more
1.0.0 · 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 FollowerReplicationStatus
impl Debug for FollowerReplicationStatus
Auto Trait Implementations§
impl Freeze for FollowerReplicationStatus
impl RefUnwindSafe for FollowerReplicationStatus
impl Send for FollowerReplicationStatus
impl Sync for FollowerReplicationStatus
impl Unpin for FollowerReplicationStatus
impl UnsafeUnpin for FollowerReplicationStatus
impl UnwindSafe for FollowerReplicationStatus
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