pub struct AppService<St, F>where
St: State,
F: Service<St, WebRequest<()>, Res = WebResponse, Error = WebError<St, St::Error>>,{ /* private fields */ }Expand description
Service to convert Request to a WebRequest
Trait Implementations§
Source§impl<St, F> Debug for AppService<St, F>where
St: State,
F: Service<St, WebRequest<()>, Res = WebResponse, Error = WebError<St, St::Error>>,
impl<St, F> Debug for AppService<St, F>where
St: State,
F: Service<St, WebRequest<()>, Res = WebResponse, Error = WebError<St, St::Error>>,
Source§impl<St, F> Service<St, Request> for AppService<St, F>where
St: State,
F: Service<St, WebRequest<()>, Res = WebResponse, Error = WebError<St, St::Error>>,
impl<St, F> Service<St, Request> for AppService<St, F>where
St: State,
F: Service<St, WebRequest<()>, Res = WebResponse, Error = WebError<St, St::Error>>,
Source§type Error = <F as Service<St, WebRequest>>::Error
type Error = <F as Service<St, WebRequest>>::Error
Error produced while checking readiness or processing a request.
Source§fn ready(
&self,
ctx: Ctx<'_, Self, St>,
) -> impl Future<Output = Result<(), Self::Error>>
fn ready( &self, ctx: Ctx<'_, Self, St>, ) -> impl Future<Output = Result<(), Self::Error>>
Waits until the service is ready to process a request. Read more
Source§fn shutdown(&self, ctx: Ctx<'_, Self, St>) -> impl Future<Output = ()>
fn shutdown(&self, ctx: Ctx<'_, Self, St>) -> impl Future<Output = ()>
Shuts down the service. Read more
Source§fn call(
&self,
req: Request,
ctx: Ctx<'_, Self, St>,
) -> impl Future<Output = Result<Self::Res, F::Error>>
fn call( &self, req: Request, ctx: Ctx<'_, Self, St>, ) -> impl Future<Output = Result<Self::Res, F::Error>>
Processes a request and asynchronously returns the response. Read more
Source§fn map<F, Res>(self, f: F) -> ServiceChain<Map<F, Self, Res>, St, Req>
fn map<F, Res>(self, f: F) -> ServiceChain<Map<F, Self, Res>, St, Req>
Maps this service’s output to a different type, returning a new service. Read more
Source§fn map_err<F, E>(self, f: F) -> ServiceChain<MapErr<F, Self, E>, St, Req>
fn map_err<F, E>(self, f: F) -> ServiceChain<MapErr<F, Self, E>, St, Req>
Maps this service’s error to a different type, returning a new service. Read more
Auto Trait Implementations§
impl<St, F> !RefUnwindSafe for AppService<St, F>
impl<St, F> !Send for AppService<St, F>
impl<St, F> !Sync for AppService<St, F>
impl<St, F> !UnwindSafe for AppService<St, F>
impl<St, F> Freeze for AppService<St, F>where
F: Freeze,
impl<St, F> Unpin for AppService<St, F>
impl<St, F> UnsafeUnpin for AppService<St, F>where
F: UnsafeUnpin,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<S, St, Req> IntoService<S, St, Req> for Swhere
S: Service<St, Req>,
impl<S, St, Req> IntoService<S, St, Req> for Swhere
S: Service<St, Req>,
Source§fn into_service(self) -> S
fn into_service(self) -> S
Converts this value into a service.