Skip to main content

EventPublisher

Trait EventPublisher 

Source
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§

Source

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".

Implementors§