pub trait HttpService:
Clone
+ Send
+ Sync
+ 'static {
type Error: StdError + Send + Sync + 'static;
// Required method
fn send(
&self,
request: Request<Body>,
) -> impl Future<Output = Result<HyperResponse<Incoming>, Self::Error>> + Send;
}Expand description
A cloneable Hyper-compatible request service.
Required Associated Types§
Required Methods§
fn send( &self, request: Request<Body>, ) -> impl Future<Output = Result<HyperResponse<Incoming>, Self::Error>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".