pub trait AuditSink: Send + Sync {
// Required methods
fn write(&self, event: &AuditEvent) -> Result<()>;
fn flush(&self) -> Result<()>;
fn close(&self) -> Result<()>;
}Expand description
Trait for audit log output sinks.
Required Methods§
Sourcefn write(&self, event: &AuditEvent) -> Result<()>
fn write(&self, event: &AuditEvent) -> Result<()>
Write an audit event to the sink.