pub struct Html<T>(pub T);
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<'r, C, B, T> Responder<WebContext<'r, C, B>> for Html<T>where
T: Into<ResponseBody>,
impl<'r, C, B, T> Responder<WebContext<'r, C, B>> for Html<T>where
T: Into<ResponseBody>,
Source§impl<'r, C, B, T> Service<WebContext<'r, C, B>> for Html<T>
impl<'r, C, B, T> Service<WebContext<'r, C, B>> for Html<T>
Auto Trait Implementations§
impl<T> Freeze for Html<T>where
T: Freeze,
impl<T> RefUnwindSafe for Html<T>where
T: RefUnwindSafe,
impl<T> Send for Html<T>where
T: Send,
impl<T> Sync for Html<T>where
T: Sync,
impl<T> Unpin for Html<T>where
T: Unpin,
impl<T> UnwindSafe for Html<T>where
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<S, Arg> ServiceExt<Arg> for Swhere
S: Service<Arg>,
impl<S, Arg> ServiceExt<Arg> for Swhere
S: Service<Arg>,
Source§fn enclosed<T>(self, build: T) -> Pipeline<Self, T, BuildEnclosed>
fn enclosed<T>(self, build: T) -> Pipeline<Self, T, BuildEnclosed>
Enclose Self with given
T as Service<<Self as Service<_>>::Response>>
. In other word T
would take Self’s Service::Response
type as it’s generic argument of Service<_>
impl.Source§fn enclosed_fn<T, Req, O>(
self,
func: T,
) -> Pipeline<Self, AsyncFn<T>, BuildEnclosed>
fn enclosed_fn<T, Req, O>( self, func: T, ) -> Pipeline<Self, AsyncFn<T>, BuildEnclosed>
Function version of Self::enclosed method.
Source§fn map<F, Res, ResMap>(self, mapper: F) -> Pipeline<Self, Map<F>, BuildEnclosed>
fn map<F, Res, ResMap>(self, mapper: F) -> Pipeline<Self, Map<F>, BuildEnclosed>
Mutate
<<Self::Response as Service<Req>>::Future as Future>::Output
type with given
closure.