pub fn call_host_function<T: TryFrom<ReturnValue>>(
function_name: &str,
parameters: Option<Vec<ParameterValue>>,
return_type: ReturnType,
) -> Result<T>
Expand description
Call a host function with the given parameters and return type. This function serializes the function call and its parameters, sends it to the host, and then retrieves the return value.
The return value is deserialized into the specified type T
.