pub trait EngineDeleteTraceHooks {
// Provided methods
fn lock_acquired(&self, _world: &str) { ... }
fn audit_intent(&self) { ... }
fn audit_intent_failed(&self, _err: &str) { ... }
fn read_cache_drained(&self) { ... }
fn physical_deleted(&self) { ... }
fn counter_decremented(&self) { ... }
fn notify_sent(&self) { ... }
fn audit_commit_failed(&self, _err: &str) { ... }
fn audit_commit_failed_event_logged(&self) { ... }
fn audit_commit_failed_event_failed(&self, _err: &str) { ... }
fn audit_commit(&self) { ... }
}Expand description
Trace hooks for Engine::delete_traced’s intent/delete/commit protocol.
All methods default to no-ops. Hooks fire in protocol order; the
audit_intent_failed / audit_commit_failed* hooks fire only on the
corresponding failure path.
Provided Methods§
Sourcefn lock_acquired(&self, _world: &str)
fn lock_acquired(&self, _world: &str)
The per-world write lock was acquired.
Sourcefn audit_intent(&self)
fn audit_intent(&self)
The audit-intent ledger row was written successfully.
Sourcefn audit_intent_failed(&self, _err: &str)
fn audit_intent_failed(&self, _err: &str)
Diagnostic-only debug rendering when the delete audit intent append fails.
Do not parse this string programmatically; use EngineError
categories and EngineError::sqlite_code for stable decisions.
Sourcefn read_cache_drained(&self)
fn read_cache_drained(&self)
In-flight reads were drained from the read cache.
Sourcefn physical_deleted(&self)
fn physical_deleted(&self)
The underlying SQLite database file was unlinked.
Sourcefn counter_decremented(&self)
fn counter_decremented(&self)
The durable-world counter and storage-used counter were updated.
Sourcefn notify_sent(&self)
fn notify_sent(&self)
The delete broadcast event was sent to subscribers.
Sourcefn audit_commit_failed(&self, _err: &str)
fn audit_commit_failed(&self, _err: &str)
Diagnostic-only debug rendering of the internal blocking storage error.
Do not parse this string programmatically; use EngineError
categories and EngineError::sqlite_code for stable decisions.
Sourcefn audit_commit_failed_event_logged(&self)
fn audit_commit_failed_event_logged(&self)
audit_commit_failed was followed by a successful delete_commit_failed
ledger entry — the audit chain reflects the partial state.
Sourcefn audit_commit_failed_event_failed(&self, _err: &str)
fn audit_commit_failed_event_failed(&self, _err: &str)
Diagnostic-only debug rendering of the internal blocking storage error.
Do not parse this string programmatically; use EngineError
categories and EngineError::sqlite_code for stable decisions.
Sourcefn audit_commit(&self)
fn audit_commit(&self)
The audit-commit ledger row was written successfully.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".