pub trait MechanismGateway: Send + Sync {
// Required method
fn execute_meta_instruction(
&self,
instr: &JsonValue,
state: JsonValue,
depth: usize,
) -> Result<MetaOutcome, String>;
}Expand description
Host-side mechanism executor: synchronous pure-function view over the canonical meta-instruction state machine.
Required Methods§
Sourcefn execute_meta_instruction(
&self,
instr: &JsonValue,
state: JsonValue,
depth: usize,
) -> Result<MetaOutcome, String>
fn execute_meta_instruction( &self, instr: &JsonValue, state: JsonValue, depth: usize, ) -> Result<MetaOutcome, String>
Execute one meta instruction against state at nesting depth,
returning the mirrored outcome. Errors are plain strings (the host
implementation flattens the canonical error type via Display).
§Errors
Budget exhaustion, depth overrun, or an invalid instruction tree — passed through verbatim from the canonical executor.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".