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§
Sourcefn subscribe_events(&self, app: &AppName) -> Result<Receiver<StreamEvent>>
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".