Skip to main content

StreamFn

Type Alias StreamFn 

Source
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 */);