Skip to main content

EventBus

Trait EventBus 

Source
pub trait EventBus: EventEmitter {
    // Provided method
    fn collected_events<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Vec<Event>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}
👎Deprecated since 0.17.25:

use everruns_host::EventSink and EventReader

Expand description

Legacy observation trait retained only so 0.17 implementations still name the path. It is outside maintained execution; use EventSink for live post-commit observation and EventReader for replay.

Provided Methods§

Source

fn collected_events<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Vec<Event>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

👎Deprecated since 0.17.25:

use everruns_host::EventSink and EventReader

Legacy collected-event view.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl EventBus for InMemoryEventEmitter

Source§

fn collected_events<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Vec<Event>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

👎Deprecated since 0.17.25:

use everruns_host::EventSink and EventReader

Source§

impl<T: EventBus + ?Sized> EventBus for Arc<T>

Source§

fn collected_events<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Vec<Event>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

👎Deprecated since 0.17.25:

use everruns_host::EventSink and EventReader

Implementors§