Skip to main content

Observer

Trait Observer 

Source
pub trait Observer: Send + Sync {
    // Required method
    fn observe<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        context: &'life1 InvocationContext,
        observation: &'life2 AgentObservation,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Best-effort observer for non-durable UI progress.

Required Methods§

Source

fn observe<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, context: &'life1 InvocationContext, observation: &'life2 AgentObservation, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Delivers one request-scoped observation.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§