Skip to main content

Executor

Trait Executor 

Source
pub trait Executor {
    // Required method
    fn execute(&mut self, actions: &[Action]) -> Result<Vec<Value>>;
}
Expand description

External world execution interface (synchronous).

Implement this trait to apply kernel decisions to the real world. The default SandboxedExecutor only allows a fixed whitelist and returns synthetic success payloads (no side effects).

Required Methods§

Source

fn execute(&mut self, actions: &[Action]) -> Result<Vec<Value>>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Executor for LoggingExecutor

Available on crate feature std only.
Source§

impl Executor for SandboxedExecutor

Source§

impl Executor for ToolGateExecutor

Available on crate feature std only.