pub trait HttpService<B>: Syncwhere
B: Send,{
type ResponseBody;
// Required method
fn call(
&self,
request: Request<B>,
) -> impl Future<Output = Response<Self::ResponseBody>> + Send;
}Required Associated Types§
type ResponseBody
Required Methods§
fn call( &self, request: Request<B>, ) -> impl Future<Output = Response<Self::ResponseBody>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.