[−][src]Trait lucet_runtime_internals::region::Region
A memory region in which Lucet instances are created and run.
These methods return an InstanceHandle
smart pointer rather than
the Instance
itself. This allows the region implementation complete control of where the
instance metadata is stored.
Provided methods
fn new_instance(&self, module: Arc<dyn Module>) -> Result<InstanceHandle, Error>
Create a new instance within the region.
Calling region.new_instance(module)
is shorthand for
region.new_instance_builder(module).build()
for use when further customization is
unnecessary.
Safety
This function runs the guest code for the WebAssembly start
section, and running any guest
code is potentially unsafe; see Instance::run()
.
fn new_instance_builder<'a>(
&'a self,
module: Arc<dyn Module>
) -> InstanceBuilder<'a>
&'a self,
module: Arc<dyn Module>
) -> InstanceBuilder<'a>
Return an InstanceBuilder
for the given module.