Skip to main content

A2aClient

Trait A2aClient 

Source
pub trait A2aClient:
    Send
    + Sync
    + 'static {
    // Required method
    fn dispatch<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
        &'life0 self,
        target: &'life1 str,
        allow_cleartext: bool,
        binding_id: &'life2 str,
        binding_key: &'life3 str,
        event: &'life4 TriggerEvent,
        cancel_rx: &'life5 mut Receiver<()>,
    ) -> Pin<Box<dyn Future<Output = Result<(ResolvedA2aEndpoint, DispatchAck), A2aClientError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait,
             'life5: 'async_trait;
}
Expand description

Abstraction over outbound A2A dispatch, injectable for tests.

Required Methods§

Source

fn dispatch<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>( &'life0 self, target: &'life1 str, allow_cleartext: bool, binding_id: &'life2 str, binding_key: &'life3 str, event: &'life4 TriggerEvent, cancel_rx: &'life5 mut Receiver<()>, ) -> Pin<Box<dyn Future<Output = Result<(ResolvedA2aEndpoint, DispatchAck), A2aClientError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait, 'life5: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§