pub trait ReplicationCallback: Send + Sync {
// Required methods
fn on_replicate(&self, resource_id: &str, source: &str, target: &str);
fn on_sync_complete(&self, resource_id: &str, region: &str);
fn on_sync_failed(&self, resource_id: &str, region: &str, error: &str);
}Expand description
Callback for replication events
Required Methods§
Sourcefn on_replicate(&self, resource_id: &str, source: &str, target: &str)
fn on_replicate(&self, resource_id: &str, source: &str, target: &str)
Called when replication is initiated
Sourcefn on_sync_complete(&self, resource_id: &str, region: &str)
fn on_sync_complete(&self, resource_id: &str, region: &str)
Called when replication completes
Sourcefn on_sync_failed(&self, resource_id: &str, region: &str, error: &str)
fn on_sync_failed(&self, resource_id: &str, region: &str, error: &str)
Called when replication fails
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".