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.
Auto Trait Implementations§
impl Freeze for SideEffect
impl RefUnwindSafe for SideEffect
impl Send for SideEffect
impl Sync for SideEffect
impl Unpin for SideEffect
impl UnwindSafe for SideEffect
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more