Skip to main content

StreamHandlerCallFn

Type Alias StreamHandlerCallFn 

Source
pub type StreamHandlerCallFn = dyn Fn(&str, StreamSender) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send>> + Send + Sync;
Expand description

Boxed closure signature for streaming handlers.

Re-exported for use by erase_streaming_handler! macros.