Skip to main content

BeforeRunCallback

Type Alias BeforeRunCallback 

Source
pub type BeforeRunCallback = Arc<dyn Fn(InvocationContext) -> BoxFuture<'static, Result<Option<Content>, AgentError>> + Send + Sync>;
Expand description

Invoked before a run starts; may return content that short-circuits the run.

Aliased Typeยง

pub struct BeforeRunCallback { /* private fields */ }