pub trait Executor {
// Required method
fn run(&self, query: &str) -> Result<Vec<Cell>>;
// Provided method
fn run_fresh(&self, query: &str) -> Result<Vec<Cell>> { ... }
}Expand description
The materialization + query substrate. Implementations run a query
against a standing arbor and return rendered Cells.
query is the whole text to run — the session prepends its macro
table (def &N: …;) so history resolves inline, which also lets it
cross a process boundary (the daemon) as plain text.
Required Methods§
Provided Methods§
Sourcefn run_fresh(&self, query: &str) -> Result<Vec<Cell>>
fn run_fresh(&self, query: &str) -> Result<Vec<Cell>>
Run against a freshly re-materialized source — the &N!
live reading. The default re-runs against the standing arbor
(an immutable source never drifts); executors that can re-open
the source override it so a live reading sees current data,
diverging from the frozen &N#.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".