Trait AskamaConnExt

Source
pub trait AskamaConnExt {
    // Required method
    fn render(self, template: impl Template) -> Self;
}
Expand description

extends trillium conns with the ability to render askama templates

Required Methods§

Source

fn render(self, template: impl Template) -> Self

renders an askama template, halting the conn and setting a 200 status code. also sets the mime type based on the template extension

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.

Implementations on Foreign Types§

Source§

impl AskamaConnExt for Conn

Source§

fn render(self, template: impl Template) -> Self

Implementors§