[][src]Trait sp_core::traits::RuntimeSpawn

pub trait RuntimeSpawn: Send {
    pub fn spawn_call(
        &self,
        dispatcher_ref: u32,
        func: u32,
        payload: Vec<u8>
    ) -> u64;
pub fn join(&self, handle: u64) -> Vec<u8>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
; }

Runtime spawn extension.

Required methods

pub fn spawn_call(
    &self,
    dispatcher_ref: u32,
    func: u32,
    payload: Vec<u8>
) -> u64
[src]

Create new runtime instance and use dynamic dispatch to invoke with specified payload.

Returns handle of the spawned task.

Function pointers (dispatcher_ref, func) are WASM pointer types.

pub fn join(&self, handle: u64) -> Vec<u8>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>
[src]

Join the result of previously created runtime instance invocation.

Loading content...

Implementors

Loading content...