pub trait OutboxEventHandler<P>:
Send
+ Sync
+ 'static{
// 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§
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
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.