Skip to main content

Module function

Module function 

Source
Expand description

Functions: the typed units of work a task runs.

Re-exports§

pub use crate::expr::ExprVisitor;
pub use crate::expr::FieldKind;
pub use crate::expr::FieldSpec;
pub use crate::expr::Rendered;
pub use crate::expr::ValueKind;

Modules§

layers
Ready-made CallLayers.
testing
One function call outside a run, for a host’s unit tests.

Structs§

CallInfo
Static facts about one call: where it sits in the program, and which iteration it is.
Ctx
A Function’s view of one call.
FunctionInfo
One row of the Registry::catalogue: a function, as tooling sees it.
FunctionSpec
What a function says about itself, for tooling. Data only.
Next
The rest of a call’s chain: the run’s layers, then the registry’s, then the function. Each list runs outermost first.
Prepare
What Function::prepare is told about the call site it prepares.
Reference
A config field that names another definition, such as a connector.
Registry
Functions and layers, plus the ExprEngine they compile against.
Templated
A plugin function’s config: the fields its manifest declared, compiled by their kinds. The fields come from the CompileCx’s runtime fields.

Enums§

Outcome
What a call tells the engine. v3’s TaskOutcome, unchanged.
RetrySafety
Is running a function twice the same as running it once?

Traits§

CallLayer
Around-call middleware for host calls.
Function
A host function: a typed config compiled once at build, and a call per task run.
FunctionConfig
A function’s input, compiled at build so a malformed one fails before any message runs. #[derive(FunctionConfig)] writes the implementation.

Type Aliases§

BoxFuture
A boxed, Send future: what a CallLayer returns.

Derive Macros§

FunctionConfig
Derives FunctionConfig (and ConfigField, so a derived config nests). Derives FunctionConfig for a function’s typed configuration, and ConfigField, so a derived config nests inside another.