Skip to main content

replicate_with_events

Function replicate_with_events 

Source
pub async fn replicate_with_events(
    source: &dyn Adapter,
    target: &dyn Adapter,
    opts: ReplicationOptions,
    events_tx: Sender<ReplicationEvent>,
) -> Result<ReplicationResult>
Expand description

Run a one-shot replication with event streaming.

Same as replicate() but emits ReplicationEvent through the provided channel as replication progresses.