Skip to main content

CommitHook

Trait CommitHook 

Source
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 also runs when the caller is dropped mid-commit, landed or not; slow work goes to a task.

Required Methods§

Source

fn committed(&self, changes: &[ChangedRecord])

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§