Skip to main content

AuditSink

Trait AuditSink 

Source
pub trait AuditSink: Send + Sync {
    // Required method
    fn record(&self, event: AuditEvent);
}
Expand description

Destination for all security audit events.

Implementations persist events to Merkle chain + file, or are no-ops for tests.

Required Methods§

Source

fn record(&self, event: AuditEvent)

Record a security audit event.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§