Skip to main content

OutboxEventHandler

Trait OutboxEventHandler 

Source
pub trait OutboxEventHandler<P>:
    Send
    + Sync
    + 'static
where P: Serialize + DeserializeOwned + Send + Sync + 'static + Unpin,
{ // Provided methods fn handle_persistent( &self, op: &mut DbOp<'_>, event: &PersistentOutboxEvent<P>, ) -> impl Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send { ... } fn handle_ephemeral( &self, event: &EphemeralOutboxEvent<P>, ) -> impl Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send { ... } }

Provided Methods§

Source

fn handle_persistent( &self, op: &mut DbOp<'_>, event: &PersistentOutboxEvent<P>, ) -> impl Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send

Source

fn handle_ephemeral( &self, event: &EphemeralOutboxEvent<P>, ) -> impl Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§