pub struct ReplicaInfo {
pub replica_id: String,
pub host: String,
pub port: u16,
pub status: String,
pub last_heartbeat: DateTime<Utc>,
pub operations_synced: u64,
pub offset: Option<u64>,
pub lag: Option<u64>,
}Expand description
Information about a replica node
Fields§
§replica_id: StringUnique identifier for the replica
host: StringHostname or IP address of the replica
port: u16Port number of the replica
status: StringCurrent status of the replica
last_heartbeat: DateTime<Utc>Timestamp of last heartbeat
operations_synced: u64Number of operations successfully synced
offset: Option<u64>Legacy: Current offset on replica (deprecated, use operations_synced)
lag: Option<u64>Legacy: Lag in operations (deprecated, use status)
Trait Implementations§
Source§impl Clone for ReplicaInfo
impl Clone for ReplicaInfo
Source§fn clone(&self) -> ReplicaInfo
fn clone(&self) -> ReplicaInfo
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 ReplicaInfo
impl Debug for ReplicaInfo
Source§impl<'de> Deserialize<'de> for ReplicaInfo
impl<'de> Deserialize<'de> for ReplicaInfo
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 ReplicaInfo
impl RefUnwindSafe for ReplicaInfo
impl Send for ReplicaInfo
impl Sync for ReplicaInfo
impl Unpin for ReplicaInfo
impl UnwindSafe for ReplicaInfo
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