pub trait DurabilityObserver {
// Required method
fn on_durable(&mut self, durable_lsn: Lsn);
}Expand description
Notified after each successful durability advance, on the writer thread.
on_durable runs synchronously inside commit once
the fdatasync has completed and durable_lsn has moved forward. It MUST be
cheap and non-blocking (an atomic release-store or a queue push), and MUST
NOT perform I/O, block, or panic. durable_lsn is monotonic across calls.
Required Methods§
Sourcefn on_durable(&mut self, durable_lsn: Lsn)
fn on_durable(&mut self, durable_lsn: Lsn)
durable_lsn is the new (monotonic) durable watermark.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".