pub trait DirectiveExecutor: Send + Sync {
// Required method
fn execute_directive(
&self,
directive: &Directive,
) -> BoxFuture<'_, Result<Option<Value>, DirectiveError>>;
}Expand description
Executes directives and produces optional results.
The default implementation is NoOpExecutor which records without executing.
Required Methods§
Sourcefn execute_directive(
&self,
directive: &Directive,
) -> BoxFuture<'_, Result<Option<Value>, DirectiveError>>
fn execute_directive( &self, directive: &Directive, ) -> BoxFuture<'_, Result<Option<Value>, DirectiveError>>
Execute a directive, returning an optional result value.
Returns Some(value) for directives like RunInstruction that need a result
routed back to the agent.