pub trait EventQueueWriter:
Send
+ Sync
+ 'static {
// Required methods
fn write<'a>(
&'a self,
event: StreamResponse,
) -> Pin<Box<dyn Future<Output = A2aResult<()>> + Send + 'a>>;
fn close<'a>(
&'a self,
) -> Pin<Box<dyn Future<Output = A2aResult<()>> + Send + 'a>>;
}Expand description
Trait for writing streaming events.
Object-safe; used as &dyn EventQueueWriter in the executor.