pub trait AuditLog: Send + Sync {
// Required method
fn write<'life0, 'life1, 'async_trait>(
&'life0 self,
event: AuditEvent<'life1>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Persistent audit logging for security-relevant events on the UserClient.
Implementations may write to files, databases, or external services.
All methods receive &self (interior mutability is the implementor’s
responsibility). Implementations should handle errors internally
(e.g., log a warning via tracing). Timestamps are the implementor’s
responsibility.