Skip to main content

NativeExecutionAdapter

Trait NativeExecutionAdapter 

Source
pub trait NativeExecutionAdapter: Debug + 'static {
    // Required method
    fn prepare(
        &self,
        plan: &ResolvedAppPlan,
    ) -> Result<PreparedNativeApp, RuntimeFailure>;

    // Provided method
    fn recreate(
        &self,
        _plan: &ResolvedAppPlan,
        instance_key: &str,
    ) -> Result<PreparedNativeModule, RuntimeFailure> { ... }
}
Expand description

Native Rust Adapter Interface for statically linked Module packages.

The blanket implementation below contributes every native Adapter to the open catalog under the official native execution-class identity.

Required Methods§

Source

fn prepare( &self, plan: &ResolvedAppPlan, ) -> Result<PreparedNativeApp, RuntimeFailure>

Instantiates the exact Plan and confirms its endpoint and binding tables.

Provided Methods§

Source

fn recreate( &self, _plan: &ResolvedAppPlan, instance_key: &str, ) -> Result<PreparedNativeModule, RuntimeFailure>

Creates a fresh generation for one selected native Module Instance.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§