Skip to main content

SendMessageExt

Trait SendMessageExt 

Source
pub trait SendMessageExt {
    // Required method
    fn send_text<'life0, 'async_trait>(
        &'life0 self,
        text: impl 'async_trait + Into<String> + Send,
    ) -> Pin<Box<dyn Future<Output = Result<SendMessageResponse, A2AError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Convenience trait to extract client results.

Required Methods§

Source

fn send_text<'life0, 'async_trait>( &'life0 self, text: impl 'async_trait + Into<String> + Send, ) -> Pin<Box<dyn Future<Output = Result<SendMessageResponse, A2AError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§