Modules§
- turn_
cache - Per-turn memoization of turn-stable host capability reads.
Traits§
- Host
Call Bridge - Embedder-supplied bridge for
host_callops.
Functions§
- clear_
host_ call_ bridge - Remove the current thread’s bridge. Idempotent.
- dispatch_
host_ call_ bridge - Dispatch
(capability, operation, params)to the currently-installedHostCallBridge, if any.Some(Ok(_))means the bridge handled the call;Some(Err(_))means it tried but raised;Nonemeans there is no bridge or the bridge declined this op (returnedOk(None)). - dispatch_
host_ operation - Public entry for canonical
host_calldispatch without an async-builtin context. Used by embedder tests and by MCP/host plumbing that already sits outside a VM builtin frame. - dispatch_
host_ operation_ with_ ctx - Canonical
host_calldispatch. - dispatch_
mock_ hostlib_ call - Dispatch a hostlib builtin through the same scoped mock registry used by
host_call. - host_
call_ ready - Box a ready host-call result for sync bridge implementations.
- register_
callable_ host_ operation - register_
mockable_ host_ operation - register_
scoped_ mockable_ host_ operation - Register a mock-validation declaration scoped to the current test thread.
- set_
host_ call_ bridge - Install a bridge for the current thread. The bridge is consulted on
every
host_callafter mock matching but before the built-in match arms, so embedders can override anything they like (and equally punt on anything they don’t, by returningOk(None)).
Type Aliases§
- Host
Call Dispatch Future - Boxed future returned by
HostCallBridge::dispatch.