Skip to main content

ValueExecutor

Trait ValueExecutor 

Source
pub trait ValueExecutor: PluginExecutor {
    // Required method
    fn call(&self, method: usize, args: Value) -> Result<Value, CallError>;
}
Expand description

Backends whose typed boundary is the self-describing Value model — Python today, and the Phase-2 WASM component executor.

cdylib deliberately does not implement this: its typed path is concrete-type bincode, which Value cannot reproduce. PluginHandle dispatches cdylib typed calls directly via bincode instead.

Required Methods§

Source

fn call(&self, method: usize, args: Value) -> Result<Value, CallError>

Typed dispatch by method index. Arguments and returns cross as a self-describing Value; the backend maps it to its native form (Python → PyObject, WASM → component::Val).

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§