pub trait Publisher {
// Required method
fn publish<E>(
&self,
message: E,
) -> impl Future<Output = Result<(), Error>> + Send
where E: Event + Clone + 'static;
}Expand description
Publishes events to the message bus.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".