Skip to main content

AuditSink

Trait AuditSink 

Source
pub trait AuditSink: Send + Sync {
    // Required method
    fn record(
        &self,
        record: Value,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + '_>>;
}
Expand description

Receives per-tool audit records emitted by tools that opt in.

Required Methods§

Source

fn record( &self, record: Value, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + '_>>

Record a structured audit entry. Implementations must not block.

Implementors§