pub trait Handler<T, Req, State, Res>:
Clone
+ Send
+ Sync
+ Sized
+ 'staticwhere
State: Send,{
type Future: Future<Output = Option<Res>> + Send;
// Required method
fn call(&self, bundle: &mut Bundle<Req, State, Res>) -> Self::Future;
}Expand description
A handler that takes extracted parameters and returns a future yielding a response.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".