[][src]Trait wascap_guest::HostRuntimeInterface

pub trait HostRuntimeInterface {
    fn do_host_call(&self, op: &str, msg: &[u8]) -> Result<Vec<u8>>;
}

A trait for a host runtime interface. This abstracts the method of invoking host calls so that the host interface can be mocked for testing

Required methods

fn do_host_call(&self, op: &str, msg: &[u8]) -> Result<Vec<u8>>

Loading content...

Implementors

impl HostRuntimeInterface for WascapHostRuntimeInterface[src]

fn do_host_call(&self, op: &str, msg: &[u8]) -> Result<Vec<u8>>[src]

The function through which all host calls take place.

Loading content...