pub trait HandlerFunc: Send + Sync {
// Required methods
fn call<'async_trait>(
self: Box<Self>,
request: Request,
) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>>
where Self: 'async_trait;
fn clone_box(&self) -> Box<dyn HandlerFunc>;
}Required Methods§
fn call<'async_trait>(
self: Box<Self>,
request: Request,
) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>>where
Self: 'async_trait,
fn clone_box(&self) -> Box<dyn HandlerFunc>
Trait Implementations§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".