Skip to main content

CommitObserver

Trait CommitObserver 

Source
pub trait CommitObserver: Send + Sync {
    // Required method
    fn on_commit(&self, ev: &CommitEvent);
}
Expand description

A passive or active observer of committed changes.

Implementations MUST be cheap and non-blocking (dispatch is synchronous on the committing thread) and MUST NOT rely on being the only observer or on a particular position beyond registration order.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§