Skip to main content

AbstractAuditLogs

Trait AbstractAuditLogs 

Source
pub trait AbstractAuditLogs: Sync + Send {
    // Required methods
    fn insert_audit_log_entry<'life0, 'life1, 'async_trait>(
        &'life0 self,
        entry: &'life1 AuditLogEntry,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_server_audit_logs<'life0, 'life1, 'async_trait>(
        &'life0 self,
        server: &'life1 str,
        query: AuditLogQuery,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<AuditLogEntry>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn insert_audit_log_entry<'life0, 'life1, 'async_trait>( &'life0 self, entry: &'life1 AuditLogEntry, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Inserts an entry into the server’s audit log

Source

fn get_server_audit_logs<'life0, 'life1, 'async_trait>( &'life0 self, server: &'life1 str, query: AuditLogQuery, ) -> Pin<Box<dyn Future<Output = Result<Vec<AuditLogEntry>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Fetches a server’s audit logs using the provided query options

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§