pub trait Handler<Args>:
Clone
+ Send
+ Sized
+ 'static {
// Required method
fn call<'async_trait>(
self,
req: Request,
) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>>
where Self: 'async_trait;
// Provided method
fn into_endpoint(self) -> IntoEndpoint<Self, Args> { ... }
}Required Methods§
fn call<'async_trait>(
self,
req: Request,
) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>>where
Self: 'async_trait,
Provided Methods§
fn into_endpoint(self) -> IntoEndpoint<Self, Args>
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.