pub struct GeoReplicationConfig {
pub region_id: String,
pub peers: Vec<PeerRegion>,
pub sync_interval_ms: u64,
pub max_clock_drift_ms: u64,
pub batch_size: usize,
}Expand description
Configuration for geo-replication.
Fields§
§region_id: StringThis region’s unique identifier.
peers: Vec<PeerRegion>Peer region endpoints for replication.
sync_interval_ms: u64Sync interval for pushing events to peers (ms).
max_clock_drift_ms: u64Maximum HLC clock drift tolerance (ms).
batch_size: usizeBatch size for replication sync.
Implementations§
Trait Implementations§
Source§impl Clone for GeoReplicationConfig
impl Clone for GeoReplicationConfig
Source§fn clone(&self) -> GeoReplicationConfig
fn clone(&self) -> GeoReplicationConfig
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 GeoReplicationConfig
impl Debug for GeoReplicationConfig
Source§impl Default for GeoReplicationConfig
impl Default for GeoReplicationConfig
Source§impl<'de> Deserialize<'de> for GeoReplicationConfig
impl<'de> Deserialize<'de> for GeoReplicationConfig
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 GeoReplicationConfig
impl RefUnwindSafe for GeoReplicationConfig
impl Send for GeoReplicationConfig
impl Sync for GeoReplicationConfig
impl Unpin for GeoReplicationConfig
impl UnsafeUnpin for GeoReplicationConfig
impl UnwindSafe for GeoReplicationConfig
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