pub struct RenderFn<F> { /* private fields */ }
Expand description
Implements Render
using a function.
This struct
is created by render_fn()
.
Trait Implementations§
Source§impl<F> IntoResponse for RenderFn<F>
Available on crate feature axum
only.
impl<F> IntoResponse for RenderFn<F>
Available on crate feature
axum
only.Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Source§impl<F> Responder for RenderFn<F>
Available on crate feature actix-web
only.
impl<F> Responder for RenderFn<F>
Available on crate feature
actix-web
only.type Body = String
Source§fn respond_to(self, req: &HttpRequest) -> HttpResponse<Self::Body>
fn respond_to(self, req: &HttpRequest) -> HttpResponse<Self::Body>
Convert self to
HttpResponse
.Auto Trait Implementations§
impl<F> Freeze for RenderFn<F>where
F: Freeze,
impl<F> RefUnwindSafe for RenderFn<F>where
F: RefUnwindSafe,
impl<F> Send for RenderFn<F>where
F: Send,
impl<F> Sync for RenderFn<F>where
F: Sync,
impl<F> Unpin for RenderFn<F>where
F: Unpin,
impl<F> UnwindSafe for RenderFn<F>where
F: 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