pub enum ModuleFnEntry {
Typed(TypedModuleFunction),
TypedAsync(TypedModuleAsyncFunction),
}Expand description
One entry in the VM’s per-process module-function table
(module_fn_table), indexed by positional u32 id.
Phase 4c.4: the legacy ModuleFn ABI escape hatch was deleted. All
stdlib and test fixtures route through the typed registry.
Self::Typed: synchronous typed-return native function. The body returnscrate::typed_module_exports::TypedReturndirectly; the dispatch boundary projects the typed return into a kinded slot per ADR-006 §2.7 — no round-trip through a synthesized runtime value.Self::TypedAsync: async typed-return native function. The body returns a future ofTypedReturn; the synchronous dispatch path blocks on the future and applies the same kind-threaded projection at the boundary.
Variants§
Typed(TypedModuleFunction)
TypedAsync(TypedModuleAsyncFunction)
Trait Implementations§
Source§impl Clone for ModuleFnEntry
impl Clone for ModuleFnEntry
Source§fn clone(&self) -> ModuleFnEntry
fn clone(&self) -> ModuleFnEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ModuleFnEntry
impl !RefUnwindSafe for ModuleFnEntry
impl Send for ModuleFnEntry
impl Sync for ModuleFnEntry
impl Unpin for ModuleFnEntry
impl UnsafeUnpin for ModuleFnEntry
impl !UnwindSafe for ModuleFnEntry
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