Skip to main content

AuditSink

Trait AuditSink 

pub trait AuditSink: Send + Sync {
    // Required methods
    fn write(&self, event: &AuditEvent) -> Result<(), Error>;
    fn flush(&self) -> Result<(), Error>;
    fn close(&self) -> Result<(), Error>;
}
Expand description

Trait for audit log output sinks.

Required Methods§

fn write(&self, event: &AuditEvent) -> Result<(), Error>

Write an audit event to the sink.

fn flush(&self) -> Result<(), Error>

Flush any buffered events.

fn close(&self) -> Result<(), Error>

Close the sink.

Implementors§