Function aingle_wasmer_host::guest::call[][src]

pub fn call<I, O>(
    instance: &mut Instance,
    f: &str,
    input: I
) -> Result<O, WasmError> where
    I: Serialize + Debug,
    O: DeserializeOwned + Debug

Host calling guest for the function named call with the given payload in a vector of bytes result is either a vector of bytes from the guest found at the location of the returned guest allocation pointer or a WasmError.