Skip to main content

BackupRunner

Type Alias BackupRunner 

Source
pub type BackupRunner = Arc<dyn Fn(String, UnboundedSender<Value>) -> BoxFuture<'static, ()> + Send + Sync + 'static>;
Expand description

Runs one backup of backup_type, emitting JSON status events into the sink and resolving when the run finishes. Injected by the binary that owns the backup driver. The runner must emit a terminal done/error event before it returns, so attached clients always see an end.

Aliased Typeยง

pub struct BackupRunner { /* private fields */ }