Skip to main content

ConfigurableOutboxPublisher

Trait ConfigurableOutboxPublisher 

Source
pub trait ConfigurableOutboxPublisher {
    // Required method
    fn configure_outbox_publisher(&mut self, config: OutboxPublisherConfig);
}
Expand description

Dependency capability for repositories whose outbox commits can publish immediately.

Service::with_bus installs an OutboxPublisherConfig through this so that repo.outbox(msg).commit(agg) publishes the row right after commit. Without it, commits leave the row pending for the polling worker.

Required Methods§

Source

fn configure_outbox_publisher(&mut self, config: OutboxPublisherConfig)

Install the outbox publisher.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§