pub type StreamFn = Box<dyn FnOnce(&mut dyn Write) -> Result<()> + Send>;Expand description
Writes a streamed body (server-sent events) until it returns; the connection closes after it, which is what delimits the body.
Aliased Typeยง
pub struct StreamFn(/* private fields */);