Skip to main content

NativeComponentExec

Trait NativeComponentExec 

Source
pub trait NativeComponentExec {
    // Required method
    fn exec_native(
        &mut self,
        component: &str,
        ports: &dyn PortReader,
        bound: Option<&Value>,
    ) -> Option<ExecOutcome>;

    // Provided method
    fn exec_native_ctx(
        &mut self,
        node_id: &str,
        component: &str,
        ports: &dyn PortReader,
        bound: Option<&Value>,
    ) -> Option<ExecOutcome> { ... }
}
Expand description

The NATIVE-PORTS handler registry seam: the handler receives the generated native ports struct behind a PortReader and returns an ExecOutcome (a boxed Value RESULT — the UNTYPED straight-line path has no target struct to de-box the result into, and returns the boxed Value as the component output, exactly as the generic path does). NO generic Vec<(String, Value)> port CONTAINER is built on the port plane — that is the de-plumb.

Required Methods§

Source

fn exec_native( &mut self, component: &str, ports: &dyn PortReader, bound: Option<&Value>, ) -> Option<ExecOutcome>

Provided Methods§

Source

fn exec_native_ctx( &mut self, node_id: &str, component: &str, ports: &dyn PortReader, bound: Option<&Value>, ) -> Option<ExecOutcome>

ctx-carrying extension (mirrors ComponentExec::exec_ctx). Default forwards.

Trait Implementations§

Source§

impl NativeComponentExec for &mut dyn NativeComponentExec

Blanket forwarding impl so a trait-object native handler (&mut dyn NativeComponentExec) satisfies NativeComponentExec (mirrors the &mut dyn ComponentExec blanket, bc#68).

Source§

fn exec_native( &mut self, component: &str, ports: &dyn PortReader, bound: Option<&Value>, ) -> Option<ExecOutcome>

Source§

fn exec_native_ctx( &mut self, node_id: &str, component: &str, ports: &dyn PortReader, bound: Option<&Value>, ) -> Option<ExecOutcome>

ctx-carrying extension (mirrors ComponentExec::exec_ctx). Default forwards.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl NativeComponentExec for &mut dyn NativeComponentExec

Blanket forwarding impl so a trait-object native handler (&mut dyn NativeComponentExec) satisfies NativeComponentExec (mirrors the &mut dyn ComponentExec blanket, bc#68).