type BoxSvc<Req, Res> = Pin<Box<dyn Svc<Req, Res = Res, Fut = BoxFut<Res>>>>;
impl<Req, Res> Svc<Req> for BoxSvc<Req, Res>
[src]
type Res = Res
To be called before exec
to signal wether the service is ready to process requests.
As such, the check should be inexpensive. Returning Poll::Pending
acts as back-pressure.
The default implementation unconditionally indicates the service is ready. Read more
pub fn exec(self: Pin<&mut Self>, req: Req) -> Self::Fut
[src]
Processes request, producing a future that outputs the response type.