Skip to main content

EventEmitter

Trait EventEmitter 

Source
pub trait EventEmitter: Send + Sync {
    // Required method
    fn emit_event<'life0, 'async_trait>(
        &'life0 self,
        event: RazeriEvent,
    ) -> Pin<Box<dyn Future<Output = Vec<(String, EventSinkError)>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Shared interface for components that emit canonical monitoring events.

Required Methods§

Source

fn emit_event<'life0, 'async_trait>( &'life0 self, event: RazeriEvent, ) -> Pin<Box<dyn Future<Output = Vec<(String, EventSinkError)>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Emit a canonical event into the monitoring pipeline.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§