Function new_instance_handle

Source
pub fn new_instance_handle(
    instance: *mut Instance,
    module: Arc<dyn Module>,
    alloc: Alloc,
    embed_ctx: CtxMap,
) -> Result<InstanceHandle, Error>
Expand description

Create a new InstanceHandle.

This is not meant for public consumption, but rather is used to make implementations of Region.

ยงSafety

This function runs the guest code for the WebAssembly start section, and running any guest code is potentially unsafe; see Instance::run().