pub trait EngineWriteTraceHooks {
// Provided methods
fn lock_acquired(&self) { ... }
fn quota_check(&self, _used: usize, _quota: usize) { ... }
fn sqlite_committed(&self, _etag: &str) { ... }
fn notify_sent(&self) { ... }
}Expand description
Trace hooks for Engine::replace_traced / Engine::append_traced.
All methods default to no-ops. Implement only the hooks an adapter cares about — typical use is a single per-operation struct that flips a flag or emits a structured trace line on each callback.
Provided Methods§
Sourcefn lock_acquired(&self)
fn lock_acquired(&self)
The per-world write lock was acquired.
Sourcefn quota_check(&self, _used: usize, _quota: usize)
fn quota_check(&self, _used: usize, _quota: usize)
Quota was checked. used is the durable storage usage before this
write; quota is the configured cap.
Sourcefn sqlite_committed(&self, _etag: &str)
fn sqlite_committed(&self, _etag: &str)
SQLite transaction committed and the new ETag is known.
Sourcefn notify_sent(&self)
fn notify_sent(&self)
notify_sent fired the broadcast event for subscribers.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".