Skip to main content

ResponseWriter

Trait ResponseWriter 

Source
pub trait ResponseWriter {
    // Required methods
    fn write(&mut self, content: &str) -> Result<()>;
    fn end(&mut self) -> Result<()>;
}
Expand description

Interface for writing rendered output

Required Methods§

Source

fn write(&mut self, content: &str) -> Result<()>

Write content to the output

Source

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

Finalize the output

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§