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
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".