Struct fire_http::service::FireService
source · pub struct FireService { /* private fields */ }Trait Implementations§
source§impl Service<Request<Body>> for FireService
impl Service<Request<Body>> for FireService
§type Error = Infallible
type Error = Infallible
Errors produced by the service.
§type Future = PinnedFuture<'static, Result<<FireService as Service<Request<Body>>>::Response, <FireService as Service<Request<Body>>>::Error>>
type Future = PinnedFuture<'static, Result<<FireService as Service<Request<Body>>>::Response, <FireService as Service<Request<Body>>>::Error>>
The future response value.
source§fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<StdResult<(), Infallible>>
fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<StdResult<(), Infallible>>
Returns
Poll::Ready(Ok(())) when the service is able to process requests. Read moresource§fn call(&mut self, req: HyperRequest) -> Self::Future
fn call(&mut self, req: HyperRequest) -> Self::Future
Process the request and return the response asynchronously. Read more