pub type ControlBridge = Arc<dyn Fn(ControlBridgeRequest) -> Arc<Once<DebugResponse>> + Send + Sync + 'static>;Expand description
How the server reaches whatever is holding the document.
A plain closure, deliberately: the server binds a socket, frames requests and hands them over, and knows nothing about windows, event loops or Tauri. The crate’s own tests have always constructed one from a bare closure with nothing running, which is the proof that a host does not need a window to serve inspection.
Public so a headless host can serve one. While this was pub(crate) the
only way to inspect a Blitz document from outside was to open a window,
which is what pushed a QA harness into screenshot and tree-file workarounds
that could not answer any question involving a click.
Aliased Type§
pub struct ControlBridge { /* private fields */ }