Skip to main content

AuditService

Trait AuditService 

Source
pub trait AuditService: Send + Sync {
    // Required methods
    fn audit_snapshot(&self, limit: usize) -> CoreAuditSnapshot;
    fn query_audit_snapshot<'life0, 'async_trait>(
        &'life0 self,
        query: CoreAuditQuery,
    ) -> Pin<Box<dyn Future<Output = CoreAuditSnapshot> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn subscribe_audit_events(&self) -> Receiver<AuditEvent>;
    fn record_audit_events_lagged(&self, skipped: u64);
}

Required Methods§

Source

fn audit_snapshot(&self, limit: usize) -> CoreAuditSnapshot

Source

fn query_audit_snapshot<'life0, 'async_trait>( &'life0 self, query: CoreAuditQuery, ) -> Pin<Box<dyn Future<Output = CoreAuditSnapshot> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn subscribe_audit_events(&self) -> Receiver<AuditEvent>

Source

fn record_audit_events_lagged(&self, skipped: u64)

Implementors§