Skip to main content

ActivityEmitter

Trait ActivityEmitter 

Source
pub trait ActivityEmitter:
    Send
    + Sync
    + Debug {
    // Required method
    fn emit<'life0, 'async_trait>(
        &'life0 self,
        event: ActivityEvent,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Activity hook for structured command lifecycle events.

Required Methods§

Source

fn emit<'life0, 'async_trait>( &'life0 self, event: ActivityEvent, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Emits one completed command event.

Implementors§