pub trait RenderPreparer {
// Required method
async fn prepare<'own>(
&self,
context: &mut RenderContext<'own>,
) -> Result<(), StatusCode>;
}Expand description
RenderedPage preparer.
Required Methods§
Sourceasync fn prepare<'own>(
&self,
context: &mut RenderContext<'own>,
) -> Result<(), StatusCode>
async fn prepare<'own>( &self, context: &mut RenderContext<'own>, ) -> Result<(), StatusCode>
Prepare.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.