pub trait StrictHandler<Res, Args>:
Clone
+ Send
+ Sync
+ 'static {
// Required method
fn call(
self,
parts: Parts,
body: Bytes,
) -> Pin<Box<dyn Future<Output = Response<BoxBody>> + Send>>;
}Expand description
A handler that returns exactly type Res.
Required Methods§
fn call( self, parts: Parts, body: Bytes, ) -> Pin<Box<dyn Future<Output = Response<BoxBody>> + 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.