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
Required Methods§
fn exec_raw( &mut self, component: &str, ports: &[(String, Value)], bound: Option<&Value>, ) -> Option<RawOutcome>
Provided Methods§
Sourcefn exec_raw_ctx(
&mut self,
node_id: &str,
component: &str,
ports: &[(String, Value)],
bound: Option<&Value>,
) -> Option<RawOutcome>
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.
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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
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.