pub trait Handler:
Send
+ Sync
+ 'static {
// Required method
fn handle(
&self,
req: PortableRequest,
) -> Pin<Box<dyn Future<Output = PortableResponse> + Send + '_>>;
}Required Methods§
fn handle( &self, req: PortableRequest, ) -> Pin<Box<dyn Future<Output = PortableResponse> + Send + '_>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".