Trait sc_service::NativeExecutionDispatch[][src]

pub trait NativeExecutionDispatch: Send + Sync {
    type ExtendHostFunctions: HostFunctions;
    fn dispatch(
        ext: &mut dyn Externalities,
        method: &str,
        data: &[u8]
    ) -> Result<Vec<u8, Global>, Error>;
fn native_version() -> NativeVersion; }
Expand description

Delegate for dispatching a CodeExecutor call.

By dispatching we mean that we execute a runtime function specified by it’s name.

Associated Types

Host functions for custom runtime interfaces that should be callable from within the runtime besides the default Substrate runtime interfaces.

Required methods

Dispatch a method in the runtime.

If the method with the specified name doesn’t exist then Err is returned.

Provide native runtime version.

Implementors