pub struct RenderEndpoint<T, E> { /* private fields */ }Expand description
The type of endpoint which renders a Tera template with the value of specified context type.
Trait Implementations§
Source§impl<'a, T, E, CtxT> Endpoint<'a> for RenderEndpoint<T, E>
impl<'a, T, E, CtxT> Endpoint<'a> for RenderEndpoint<T, E>
Source§type Output = (Response<<T as TemplateEngine>::Body>,)
type Output = (Response<<T as TemplateEngine>::Body>,)
The inner type associated with this endpoint.
Source§fn apply(&'a self, cx: &mut ApplyContext<'_>) -> ApplyResult<Self::Future>
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.
Source§fn with_output<T>(self) -> Self
fn with_output<T>(self) -> Self
Add an annotation that the associated type
Output is fixed to T.Auto Trait Implementations§
impl<T, E> !Freeze for RenderEndpoint<T, E>
impl<T, E> RefUnwindSafe for RenderEndpoint<T, E>where
E: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, E> Send for RenderEndpoint<T, E>
impl<T, E> Sync for RenderEndpoint<T, E>
impl<T, E> Unpin for RenderEndpoint<T, E>
impl<T, E> UnwindSafe for RenderEndpoint<T, E>where
E: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<'a, E> EndpointWrapExt<'a> for Ewhere
E: Endpoint<'a>,
impl<'a, E> EndpointWrapExt<'a> for Ewhere
E: Endpoint<'a>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more