Skip to main content

apply

Function apply 

Source
pub(super) fn apply(
    state: &AppState,
    worker: &mut AgentDefinition,
    runtime: &WorkerRuntime,
) -> Result<(), String>
Expand description

Gives the new worker its harness and route, as runtime says: srv writes both, so an agent cannot give itself a route by writing its own definition (written_only_by_srv).