pub struct ServableWithRoute<S: Servable> { /* private fields */ }Expand description
A Servable and the route it is available at
Implementations§
Trait Implementations§
Source§impl<S: Servable> Servable for ServableWithRoute<S>
impl<S: Servable> Servable for ServableWithRoute<S>
Source§fn head<'a>(
&'a self,
ctx: &'a RenderContext,
) -> Pin<Box<dyn Future<Output = Rendered<()>> + Send + Sync + 'a>>
fn head<'a>( &'a self, ctx: &'a RenderContext, ) -> Pin<Box<dyn Future<Output = Rendered<()>> + Send + Sync + 'a>>
Return the same response as Servable::render, but with an empty body. Read more
Source§fn render<'a>(
&'a self,
ctx: &'a RenderContext,
) -> Pin<Box<dyn Future<Output = Rendered<RenderedBody>> + Send + Sync + 'a>>
fn render<'a>( &'a self, ctx: &'a RenderContext, ) -> Pin<Box<dyn Future<Output = Rendered<RenderedBody>> + Send + Sync + 'a>>
Render this page. Must return the same metadata as Servable::head.
Consider using crate::Rendered::with_body and Servable::head to implement this fn. Read more
Auto Trait Implementations§
impl<S> !Freeze for ServableWithRoute<S>
impl<S> RefUnwindSafe for ServableWithRoute<S>where
S: RefUnwindSafe,
impl<S> Send for ServableWithRoute<S>
impl<S> Sync for ServableWithRoute<S>
impl<S> Unpin for ServableWithRoute<S>where
S: Unpin,
impl<S> UnwindSafe for ServableWithRoute<S>where
S: 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