Skip to main content

AfterCommit

Trait AfterCommit 

Source
pub trait AfterCommit: Send + 'static {
    type Error: Error + Send + Sync + 'static;

    // Required method
    fn execute(self) -> impl Future<Output = Result<(), Self::Error>> + Send;
}
Expand description

Work that is safe to perform only after the read-model transaction commits.

Required Associated Types§

Source

type Error: Error + Send + Sync + 'static

Error returned by the after-commit action.

Required Methods§

Source

fn execute(self) -> impl Future<Output = Result<(), Self::Error>> + Send

Executes the action after the transaction’s commit was acknowledged.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§