Skip to main content

Audit

Trait Audit 

Source
pub trait Audit {
    // Required method
    async fn produce_message(&self, data: &[u8]) -> Result<(), MantaError>;
}
Expand description

Trait for producing audit messages to a message broker.

Required Methods§

Source

async fn produce_message(&self, data: &[u8]) -> Result<(), MantaError>

Publish a single audit message payload. Implementations are expected to be fire-and-forget — failures should be logged but not propagated to the caller, since audit failures must not abort the outer operation.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§