Skip to main content

EventSink

Trait EventSink 

Source
pub trait EventSink: Send + Sync {
    // Required method
    fn emit<'life0, 'async_trait>(
        &'life0 self,
        event: SessionEvent,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided method
    fn is_noop(&self) -> bool { ... }
}
Expand description

Host event sink for low-level streaming runtime events. SessionEvent is intentionally mode-specific and should be treated as preview/progress data.

Required Methods§

Source

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

Provided Methods§

Source

fn is_noop(&self) -> bool

Implementors§