pub trait EventEmitter {
type Event;
type Error: Debug;
// Required method
fn emit_event<'life0, 'async_trait>(
&'life0 mut self,
completed_events: Vec<Self::Event>,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Required Associated Types§
Required Methods§
fn emit_event<'life0, 'async_trait>(
&'life0 mut self,
completed_events: Vec<Self::Event>,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".