Struct finchers_template::RenderEndpoint [−][src]
pub struct RenderEndpoint<T, E> { /* fields omitted */ }
The type of endpoint which renders a Tera template with the value of specified context type.
Trait Implementations
impl<T: Debug, E: Debug> Debug for RenderEndpoint<T, E>
[src]
impl<T: Debug, E: Debug> Debug for RenderEndpoint<T, E>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a, T, E, CtxT> Endpoint<'a> for RenderEndpoint<T, E> where
T: TemplateEngine + 'a,
E: Endpoint<'a, Output = (CtxT,)>,
CtxT: Serialize,
[src]
impl<'a, T, E, CtxT> Endpoint<'a> for RenderEndpoint<T, E> where
T: TemplateEngine + 'a,
E: Endpoint<'a, Output = (CtxT,)>,
CtxT: Serialize,
type Output = (Response<T::Body>,)
The inner type associated with this endpoint.
type Future = TemplateFuture<'a, T, E>
The type of value which will be returned from apply
.
fn apply(&'a self, cx: &mut ApplyContext) -> ApplyResult<Self::Future>
[src]
fn apply(&'a self, cx: &mut ApplyContext) -> ApplyResult<Self::Future>
Perform checking the incoming HTTP request and returns an instance of the associated Future if matched. Read more
fn with_output<T>(self) -> Self where
Self: Endpoint<'a, Output = T>,
T: Tuple,
[src]
fn with_output<T>(self) -> Self where
Self: Endpoint<'a, Output = T>,
T: Tuple,
Add an annotation that the associated type Output
is fixed to T
.
fn wrap<W>(self, wrapper: W) -> <W as Wrapper<'a, Self>>::Endpoint where
W: Wrapper<'a, Self>,
[src]
fn wrap<W>(self, wrapper: W) -> <W as Wrapper<'a, Self>>::Endpoint where
W: Wrapper<'a, Self>,
Converts self
using the provided Wrapper
.
Auto Trait Implementations
impl<T, E> Send for RenderEndpoint<T, E> where
E: Send,
T: Send,
impl<T, E> Send for RenderEndpoint<T, E> where
E: Send,
T: Send,
impl<T, E> Sync for RenderEndpoint<T, E> where
E: Sync,
T: Sync,
impl<T, E> Sync for RenderEndpoint<T, E> where
E: Sync,
T: Sync,