Struct fire_http::service::MakeFireService
source · pub struct MakeFireService { /* private fields */ }Expand description
A tower::Service to be used with the hyper::Server
Implementations§
Trait Implementations§
source§impl<'a> Service<&'a AddrStream> for MakeFireService
impl<'a> Service<&'a AddrStream> for MakeFireService
§type Response = FireService
type Response = FireService
Responses given by the service.
§type Error = Infallible
type Error = Infallible
Errors produced by the service.
§type Future = Ready<Result<FireService, Infallible>>
type Future = Ready<Result<FireService, Infallible>>
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, addr_stream: &'a AddrStream) -> Self::Future
fn call(&mut self, addr_stream: &'a AddrStream) -> Self::Future
Process the request and return the response asynchronously. Read more