Struct xitca_http::util::service::handler::HandlerService
source · pub struct HandlerService<F, T, M> { /* private fields */ }Implementations§
source§impl<F, T, M> HandlerService<F, T, M>
impl<F, T, M> HandlerService<F, T, M>
Trait Implementations§
source§impl<F, T, M> Clone for HandlerService<F, T, M>where
F: Clone,
impl<F, T, M> Clone for HandlerService<F, T, M>where
F: Clone,
source§impl<F, Req, T, O> Service<Req> for HandlerService<F, T, ServiceMark>where
T: FromRequest<'static, Req>,
F: AsyncClosure<T> + for<'a> AsyncClosure<T::Type<'a>, Output = O>,
O: Responder<Req>,
T::Error: From<O::Error>,
impl<F, Req, T, O> Service<Req> for HandlerService<F, T, ServiceMark>where
T: FromRequest<'static, Req>,
F: AsyncClosure<T> + for<'a> AsyncClosure<T::Type<'a>, Output = O>,
O: Responder<Req>,
T::Error: From<O::Error>,
Auto Trait Implementations§
impl<F, T, M> RefUnwindSafe for HandlerService<F, T, M>where
F: RefUnwindSafe,
impl<F, T, M> Send for HandlerService<F, T, M>where
F: Send,
impl<F, T, M> Sync for HandlerService<F, T, M>where
F: Sync,
impl<F, T, M> Unpin for HandlerService<F, T, M>where
F: Unpin,
impl<F, T, M> UnwindSafe for HandlerService<F, T, M>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
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>(self, func: T) -> Pipeline<Self, T, BuildEnclosedFn>
fn enclosed_fn<T, Req>(self, func: T) -> Pipeline<Self, T, BuildEnclosedFn>
Function version of Self::enclosed method.
source§fn map<F, Res, ResMap>(self, mapper: F) -> Pipeline<Self, F, BuildMap>
fn map<F, Res, ResMap>(self, mapper: F) -> Pipeline<Self, F, BuildMap>
Mutate
<<Self::Response as Service<Req>>::Future as Future>::Output type with given
closure.