pub trait CommitHook:
Any
+ Send
+ Sync {
// Required method
fn committed(&self, changes: &[ChangedRecord]);
}Expand description
Runs after a commit that wrote aggregates, which already stands, so it cannot fail it. It runs inline, so a caller cancelled once the commit stands cannot skip it; slow work goes to a task.
Required Methods§
fn committed(&self, changes: &[ChangedRecord])
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".