Skip to main content

FlushWriter

Trait FlushWriter 

Source
pub trait FlushWriter: ResponseWriter {
    // Required method
    fn flush(&mut self) -> Result<()>;
}
Expand description

A response writer that can hand buffered bytes to its transport immediately.

Progressive hydration requires this semantic flush at every committed boundary. Hosts that cannot provide it must use WebUIHandler::render.

Required Methods§

Source

fn flush(&mut self) -> Result<()>

Hand all currently buffered bytes to the underlying transport.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§