Skip to main content

RawComponentExec

Trait RawComponentExec 

Source
pub trait RawComponentExec {
    // Required method
    fn exec_raw(
        &mut self,
        component: &str,
        ports: &[(String, Value)],
        bound: Option<&Value>,
    ) -> Option<RawOutcome>;

    // Provided method
    fn exec_raw_ctx(
        &mut self,
        node_id: &str,
        component: &str,
        ports: &[(String, Value)],
        bound: Option<&Value>,
    ) -> Option<RawOutcome> { ... }
}
Expand description

The RAW handler registry seam: like ComponentExec, but the handler returns a RawValue (native-backed) instead of a boxed Value. A generated raw-ABI module dispatches through this and materializes structs directly from the RawValue — no dynamic Value tree on the row data plane.

Required Methods§

Source

fn exec_raw( &mut self, component: &str, ports: &[(String, Value)], bound: Option<&Value>, ) -> Option<RawOutcome>

Provided Methods§

Source

fn exec_raw_ctx( &mut self, node_id: &str, component: &str, ports: &[(String, Value)], bound: Option<&Value>, ) -> Option<RawOutcome>

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

Trait Implementations§

Source§

impl RawComponentExec for &mut dyn RawComponentExec

Blanket forwarding impl so a trait-object raw handler (&mut dyn RawComponentExec) satisfies RawComponentExec — mirrors the &mut dyn ComponentExec blanket (bc#68) so a consumer holding its raw registry behind a trait object drives the generated raw module through the unchanged generic entry.

Source§

fn exec_raw( &mut self, component: &str, ports: &[(String, Value)], bound: Option<&Value>, ) -> Option<RawOutcome>

Source§

fn exec_raw_ctx( &mut self, node_id: &str, component: &str, ports: &[(String, Value)], bound: Option<&Value>, ) -> Option<RawOutcome>

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 RawComponentExec for &mut dyn RawComponentExec

Blanket forwarding impl so a trait-object raw handler (&mut dyn RawComponentExec) satisfies RawComponentExec — mirrors the &mut dyn ComponentExec blanket (bc#68) so a consumer holding its raw registry behind a trait object drives the generated raw module through the unchanged generic entry.