Skip to main content

Spawner

Type Alias Spawner 

Source
pub type Spawner = Box<dyn FnMut(&mut PipelineWorld, &SpawnArgs) -> Result<Entity, String> + Send>;
Expand description

The daemon-installed function that turns SpawnArgs into a live agent: loads the blueprint, resolves stages/tools, spawns into the world, and returns the new entity (the host records the run-id mapping). Returns Err with a human-readable message on failure.

Aliased Typeยง

pub struct Spawner(/* private fields */);