pub trait EventPublisher:
Send
+ Sync
+ 'static {
// Required method
fn publish_event(&self, event: TenantEventMessage);
}Expand description
Abstraction providing the ability to publish an event
Required Methods§
Sourcefn publish_event(&self, event: TenantEventMessage)
fn publish_event(&self, event: TenantEventMessage)
Publish an event with the event publisher