Skip to main content

RootView

Trait RootView 

Source
pub trait RootView: Send + Sync {
    // Required method
    fn render(&self, ctx: RootViewContext<'_>) -> Result<String, String>;
}
Expand description

Renders the initial HTML shell for a non-XHR response.

Required Methods§

Source

fn render(&self, ctx: RootViewContext<'_>) -> Result<String, String>

Produce the HTML body for the response.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§