pub enum SideEffect {
Instance(InstanceId),
Resource(DefinedResourceIndex),
}Expand description
Possible side effects that are possible with instantiating this component.
Variants§
Instance(InstanceId)
A core wasm instance was created.
Instantiation is side-effectful due to the presence of constructs such
as traps and the core wasm start function which may call component
imports. Instantiation order from the original component must be done in
the same order.
Resource(DefinedResourceIndex)
A resource was declared in this component.
This is a bit less side-effectful than instantiation but this serves as the order in which resources are initialized in a component with their destructors. Destructors are loaded from core wasm instances (or lowerings) which are produced by prior side-effectful operations.