Skip to main content

EngineDeleteTraceHooks

Trait EngineDeleteTraceHooks 

Source
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§

Source

fn lock_acquired(&self, _world: &str)

The per-world write lock was acquired.

Source

fn audit_intent(&self)

The audit-intent ledger row was written successfully.

Source

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.

Source

fn read_cache_drained(&self)

In-flight reads were drained from the read cache.

Source

fn physical_deleted(&self)

The underlying SQLite database file was unlinked.

Source

fn counter_decremented(&self)

The durable-world counter and storage-used counter were updated.

Source

fn notify_sent(&self)

The delete broadcast event was sent to subscribers.

Source

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.

Source

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.

Source

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.

Source

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

Implementors§