Skip to main content

stream_handler

Function stream_handler 

Source
pub fn stream_handler<F, Fut>(f: F) -> StreamHandler
where F: Fn(Stream) -> Fut + Send + Sync + 'static, Fut: Future<Output = Result<(), String>> + Send + 'static,
Expand description

A StreamHandler from an async closure.