Skip to main content

EngineWriteTraceHooks

Trait EngineWriteTraceHooks 

Source
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-request struct that flips a flag or emits a structured trace line on each callback.

Provided Methods§

Source

fn lock_acquired(&self)

The per-world write lock was acquired.

Source

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.

Source

fn sqlite_committed(&self, _etag: &str)

SQLite transaction committed and the new ETag is known.

Source

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".

Implementors§