Skip to main content

StreamCallback

Type Alias StreamCallback 

Source
pub type StreamCallback = Box<dyn FnMut(&str) + Send>;
Expand description

Callback invoked for each stream chunk during function execution. The server layer converts these into SSE events on the HTTP response.

Aliased Type§

pub struct StreamCallback(/* private fields */);