pub trait EventQueueReader: Send + 'static {
// Required method
fn read(
&mut self,
) -> Pin<Box<dyn Future<Output = Option<Result<StreamResponse, A2aError>>> + Send + '_>>;
}Expand description
Trait for reading streaming events.
NOT object-safe (used as a concrete type internally). The async fn is
fine because this trait is never used behind dyn.