pub enum RunEvent {
Show 15 variants
Targets(RunTargets),
Plan(usize),
BindingStart {
report: String,
set: Option<String>,
},
BindingLog(PathBuf),
BindingVars {
schedule: Option<String>,
schedule_vars: Option<Map<String, Value>>,
vars: Map<String, Value>,
},
Step {
level: Level,
verb: String,
detail: String,
elapsed: Option<Duration>,
},
Warn(String),
BindingEnd(BindingOutcome),
Compiled(BindingPlan),
Message(ShownMessage),
PluginLog(String, String),
Sql(String, String),
Running {
label: String,
running: bool,
},
Rows(RowProgress),
Block(Vec<RunEvent>),
}Expand description
Something that happened during a run.
Variants§
Targets(RunTargets)
The run’s target and each used profile’s entry, once they’re all known to exist.
Plan(usize)
The number of Bindings about to run.
BindingStart
BindingLog(PathBuf)
The running Binding’s log file (runs/<run id>/dre.log), once its run folder exists.
BindingVars
The schedule a Binding runs under (if any) and every var it uses.
Step
One step inside the current Binding.
Warn(String)
BindingEnd(BindingOutcome)
Compiled(BindingPlan)
A Binding compiled: what it would do.
Message(ShownMessage)
--preview: a rendered message, shown instead of sent.
PluginLog(String, String)
A line a plugin wrote to stderr: (plugin, line).
Sql(String, String)
The full text of a statement sent to a source: (label, sql).
Running
Bindings running at once (threads:): one Binding started or finished. Sent as it
happens; the Binding’s own events follow later, together, as a RunEvent::Block.
Rows(RowProgress)
A per-row output’s progress. Sent as it happens, never held in a block.
Block(Vec<RunEvent>)
One Binding’s events, in order, when Bindings run at once: shown together so their lines don’t interleave.