Skip to main content

CommitObserver

Type Alias CommitObserver 

Source
pub type CommitObserver = Arc<dyn Fn(&WalEntry) + Sync + Send>;
Expand description

A synchronous hook invoked with each committed WalEntry, in commit order. Leader-follower replication (ADR-0030) installs one to publish each op to its replication stream. A plain Fn keeps the engine runtime-agnostic — no async dependency leaks into quiver-core.

Aliased Type§

pub struct CommitObserver { /* private fields */ }