pub struct ReplicationStats {
pub role: Option<String>,
pub bytes_sent: Option<u64>,
pub bytes_received: Option<u64>,
pub last_sync: Option<DateTime<Utc>>,
pub operations_pending: Option<usize>,
pub snapshot_size: Option<usize>,
pub connected_replicas: Option<usize>,
pub master_offset: u64,
pub replica_offset: u64,
pub lag_operations: u64,
pub total_replicated: u64,
}Expand description
Statistics for replication status
Fields§
§role: Option<String>Role of the node: Master or Replica
bytes_sent: Option<u64>Total bytes sent to replicas (Master only)
bytes_received: Option<u64>Total bytes received from master (Replica only)
last_sync: Option<DateTime<Utc>>Timestamp of last synchronization
operations_pending: Option<usize>Number of operations pending replication
snapshot_size: Option<usize>Size of snapshot data in bytes
connected_replicas: Option<usize>Number of connected replicas (Master only)
master_offset: u64Current offset on master node
replica_offset: u64Current offset on replica node
lag_operations: u64Number of operations behind
total_replicated: u64Total operations replicated
Trait Implementations§
Source§impl Clone for ReplicationStats
impl Clone for ReplicationStats
Source§fn clone(&self) -> ReplicationStats
fn clone(&self) -> ReplicationStats
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 ReplicationStats
impl Debug for ReplicationStats
Source§impl<'de> Deserialize<'de> for ReplicationStats
impl<'de> Deserialize<'de> for ReplicationStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ReplicationStats
impl RefUnwindSafe for ReplicationStats
impl Send for ReplicationStats
impl Sync for ReplicationStats
impl Unpin for ReplicationStats
impl UnwindSafe for ReplicationStats
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