[][src]Trait sc_service::NativeExecutionDispatch

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

Delegate for dispatching a CodeExecutor call.

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

Associated Types

type ExtendHostFunctions: HostFunctions[src]

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

Loading content...

Required methods

pub fn dispatch(
    ext: &mut dyn Externalities,
    method: &str,
    data: &[u8]
) -> Result<Vec<u8, Global>, Error>
[src]

Dispatch a method in the runtime.

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

pub fn native_version() -> NativeVersion[src]

Provide native runtime version.

Loading content...

Implementors

Loading content...