pub enum WasmExport<'a> {
Func {
interface: Option<&'a WorldKey>,
func: &'a Function,
post_return: bool,
},
ResourceDtor {
interface: &'a WorldKey,
resource: TypeId,
},
Memory,
Initialize,
Realloc,
}
Expand description
Different kinds of exports that can be passed to
Resolve::wasm_export_name
to export from core wasm modules.
Variants§
Func
A WIT function is being exported, optionally from an interface.
Fields
ResourceDtor
A destructor for a resource exported from this module.
Fields
Memory
Linear memory, the one that the canonical ABI uses.
Initialize
An initialization function (not the core wasm start
).
Realloc
The general-purpose realloc hook.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for WasmExport<'a>
impl<'a> RefUnwindSafe for WasmExport<'a>
impl<'a> Send for WasmExport<'a>
impl<'a> Sync for WasmExport<'a>
impl<'a> Unpin for WasmExport<'a>
impl<'a> UnwindSafe for WasmExport<'a>
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