pub fn stream_handler<F, Fut>(f: F) -> StreamHandlerwhere F: Fn(Stream) -> Fut + Send + Sync + 'static, Fut: Future<Output = Result<(), String>> + Send + 'static,
A StreamHandler from an async closure.
StreamHandler