Skip to main content

OutboxPublisher

Trait OutboxPublisher 

Source
pub trait OutboxPublisher:
    Send
    + Sync
    + 'static {
    // Required method
    fn publish<'a>(
        &'a self,
        entry: &'a OutboxEntry,
    ) -> BoxFuture<'a, Result<(), BoxError>>;
}
Expand description

Downstream event transport (Kafka, NATS, webhook fan-out, …).

Required Methods§

Source

fn publish<'a>( &'a self, entry: &'a OutboxEntry, ) -> BoxFuture<'a, Result<(), BoxError>>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§