Struct hyper_middleware::service::Service
source · pub struct Service<H> { /* private fields */ }
Expand description
A [Hyper Service][hyper::service::Service
] entry point which hosts a Handler
.
Implementations§
Trait Implementations§
source§impl<H, T> Service<&T> for Service<H>where
H: Handler,
T: RemoteAddr + Send + 'static,
impl<H, T> Service<&T> for Service<H>where
H: Handler,
T: RemoteAddr + Send + 'static,
§type Error = Infallible
type Error = Infallible
Errors produced by the service.
§type Future = Ready<Result<<Service<H> as Service<&T>>::Response, <Service<H> as Service<&T>>::Error>>
type Future = Ready<Result<<Service<H> as Service<&T>>::Response, <Service<H> as Service<&T>>::Error>>
The future response value.