Skip to main content

Module host

Module host 

Source

Traits§

HostCallBridge
Embedder-supplied bridge for host_call ops.

Functions§

clear_host_call_bridge
Remove the current thread’s bridge. Idempotent.
dispatch_host_call_bridge
Dispatch (capability, operation, params) to the currently-installed HostCallBridge, if any. Some(Ok(_)) means the bridge handled the call; Some(Err(_)) means it tried but raised; None means there is no bridge or the bridge declined this op (returned Ok(None)).
set_host_call_bridge
Install a bridge for the current thread. The bridge is consulted on every host_call after 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 returning Ok(None)).