Skip to main content

AuditSink

Trait AuditSink 

Source
pub trait AuditSink:
    Send
    + Sync
    + Debug {
    // Required method
    fn write<'life0, 'async_trait>(
        &'life0 self,
        record: AuditRecord,
        durable: bool,
    ) -> Pin<Box<dyn Future<Output = Result<(), AuditError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Destination for serialized audit records.

Required Methods§

Source

fn write<'life0, 'async_trait>( &'life0 self, record: AuditRecord, durable: bool, ) -> Pin<Box<dyn Future<Output = Result<(), AuditError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Write one record. When durable is true, return only after the record has reached stable storage.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§