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_
mock_ hostlib_ call - Dispatch a hostlib builtin through the same scoped mock registry used by
host_call. - 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)).