Skip to main content

run

Function run 

Source
async fn run<F>(
    state: &AppState,
    caller: Option<&Caller>,
    action: &'static str,
    named: String,
    op: F,
) -> Response
where F: FnOnce(&AppState, &str) -> Result<(Value, String), Refusal> + Send + 'static,
Expand description

Run op as the calling agent, and record the outcome under it.