pub trait Dispatcher:
Send
+ Sync
+ 'static {
// Required method
fn dispatch(
&self,
req: Request<Incoming>,
) -> Pin<Box<dyn Future<Output = DispatchResponse> + Send + '_>>;
}Expand description
Trait for types that can dispatch HTTP requests to an A2A handler.
Implemented by both JsonRpcDispatcher and
RestDispatcher.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".