[][src]Function lucet_runtime_internals::instance::new_instance_handle

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

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().