pub trait Handler<T>:
Clone
+ Send
+ Sync
+ Sized
+ 'static {
type Future: Future<Output = Response> + Send + 'static;
// Required methods
fn call(self, req: Request) -> Self::Future;
fn update_operation(op: &mut Operation);
}Expand description
Trait representing an async handler function
Required Associated Types§
Required Methods§
Sourcefn update_operation(op: &mut Operation)
fn update_operation(op: &mut Operation)
Update the OpenAPI operation
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.