Skip to main content

OutboundFn

Type Alias OutboundFn 

Source
pub type OutboundFn = Arc<dyn Fn(Value) + Send + Sync>;
Expand description

Outbound JSON sink for progress notifications.

We accept a closure rather than a concrete mpsc::UnboundedSender so HTTP transports — which feed an axum::Sse stream via a wrapping closure — can install the same kind of bus as stdio without an adapter shim.

Aliased Type§

pub struct OutboundFn { /* private fields */ }