Trait evented::entity::EventListener
source · pub trait EventListener<E, M>: Send {
// Required method
fn listen(
&mut self,
ewm: &EventWithMetadata<E, M>,
tx: &mut Transaction<'_, Postgres>,
) -> impl Future<Output = Result<(), BoxError>> + Send
where E: Sync,
M: Sync;
}Expand description
Invoked for each event during the transaction persisting the events returned from the command handler.
Required Methods§
fn listen( &mut self, ewm: &EventWithMetadata<E, M>, tx: &mut Transaction<'_, Postgres>, ) -> impl Future<Output = Result<(), BoxError>> + Send
Object Safety§
This trait is not object safe.