ReplicationCallback

Trait ReplicationCallback 

Source
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§

Source

fn on_replicate(&self, resource_id: &str, source: &str, target: &str)

Called when replication is initiated

Source

fn on_sync_complete(&self, resource_id: &str, region: &str)

Called when replication completes

Source

fn on_sync_failed(&self, resource_id: &str, region: &str, error: &str)

Called when replication fails

Implementors§