Sign in

    Milky2018/wasmoon_runtime/native/execution does not have a README file

    NativeContinuationArena

    Store-owned continuation identities. The bridge retains state, while state owns physical storage and never retains the bridge or a native context.

    NativeExceptionArena

    Store-owned immutable exception snapshots shared by native instances.

    NativeExecutionStateError

    pub suberror NativeExecutionStateError {
    ExecutionStateSealed
    UnknownInvocation(Int64)
    InvocationNotActive(Int64)
    InvocationNotParked(Int64)
    InvocationNotCurrent(Int64)
    } derive(Eq,
    Debug
    )

    Invalid transition in the Store-owned native invocation state machine.

    NativeExecutionStateError::equal

    NativeExecutionStateError::not_equal

    NativeExecutionStateError::output

    fn NativeExecutionStateError::output(self : NativeExecutionStateError, logger : &Logger) -> Unit

    NativeExecutionStateError::to_string

    NativeExecutionState

    type NativeExecutionState

    Store-scoped owner of native invocation lifetimes.

    The active stack models nested native entry. Parked invocations remain in invocations but are absent from active, so any number of component tasks can retain distinct native resources without sharing an execution stack.

    NativeExecutionState::active_depth

    fn NativeExecutionState::active_depth(self : NativeExecutionState) -> Int

    NativeExecutionState::begin

    NativeExecutionState::current_invocation

    fn NativeExecutionState::current_invocation(self : NativeExecutionState) -> Int64?

    NativeExecutionState::live_count

    fn NativeExecutionState::live_count(self : NativeExecutionState) -> Int

    NativeExecutionState::parked_count

    fn NativeExecutionState::parked_count(self : NativeExecutionState) -> Int

    NativeExecutionState::release_if_live

    fn NativeExecutionState::release_if_live(self : NativeExecutionState, id : Int64) -> Unit

    Best-effort scope cleanup after an error.

    Strict user-visible transitions use complete and cancel; this method is intentionally idempotent so a defer can release an unfinished invocation without masking the original trap.

    NativeExecutionState::retire_continuations

    fn NativeExecutionState::retire_continuations(self : NativeExecutionState) -> Unit

    Retire parked guest stacks before their modules release entry trampolines.

    NativeExecutionState::seal

    Irreversibly reject new invocations while preserving cleanup operations for existing handles.

    NativeExecutionState::to_repr

    NativeInvocationHandle

    type NativeInvocationHandle

    Stable handle for one Store-owned native invocation.

    NativeInvocationHandle::cancel

    NativeInvocationHandle::complete

    NativeInvocationHandle::id

    NativeInvocationHandle::park

    NativeInvocationHandle::reactivate

    NativeInvocationHandle::release_if_live

    fn NativeInvocationHandle::release_if_live(self : NativeInvocationHandle) -> Unit

    NativeInvocationHandle::resource_id

    NativeInvocationHandle::to_repr

    NativeInvocationPhase

    pub(all) enum NativeInvocationPhase {
    Active
    Parked
    } derive(Eq,
    Debug
    )

    Lifecycle phase of a Store-owned native invocation.

    NativeInvocationPhase::equal

    NativeInvocationPhase::not_equal

    supported

    fn supported() -> Bool

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io