pub trait FlushWriter: ResponseWriter {
// Required method
fn flush(&mut self) -> Result<(), HandlerError>;
}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§
Sourcefn flush(&mut self) -> Result<(), HandlerError>
fn flush(&mut self) -> Result<(), HandlerError>
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".