Skip to main content

set_host_call_bridge

Function set_host_call_bridge 

Source
pub fn set_host_call_bridge(bridge: Rc<dyn HostCallBridge>)
Expand description

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)).