Skip to main content

EventBus

Trait EventBus 

Source
pub trait EventBus:
    Send
    + Sync
    + 'static {
    // Required method
    fn subscribe_events(&self, app: &AppName) -> Result<Receiver<StreamEvent>>;
}
Expand description

Lifecycle event subscription, decoupled from the concrete registry.

Required Methods§

Source

fn subscribe_events(&self, app: &AppName) -> Result<Receiver<StreamEvent>>

Subscribe to the StreamEvent feed for an application.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§