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§async fn ready(&self, ctx: Ctx<'_, Self, St>) -> Result<(), Self::Error>
async fn ready(&self, ctx: Ctx<'_, Self, St>) -> Result<(), Self::Error>
Waits until the service is ready to process a request. Read more
Source§async fn call(
&self,
req: Request,
ctx: Ctx<'_, Self, St>,
) -> Result<Self::Res, F::Error>
async fn call( &self, req: Request, ctx: Ctx<'_, Self, St>, ) -> 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> !Freeze for AppService<St, F>
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> Unpin for AppService<St, F>
impl<St, F> UnsafeUnpin for AppService<St, F>where
F: UnsafeUnpin,
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<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.