pub trait OutboxPublisher:
Send
+ Sync
+ 'static {
// Required method
fn publish<'a>(
&'a self,
entry: &'a OutboxEntry,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Sync + Send>>> + Send + 'a>>;
}Expand description
Downstream event transport (Kafka, NATS, webhook fan-out, …).
Required Methods§
fn publish<'a>( &'a self, entry: &'a OutboxEntry, ) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Sync + Send>>> + Send + 'a>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".