Skip to main content

AuditBatchControl

Trait AuditBatchControl 

Source
pub trait AuditBatchControl: Send + Sync {
    // Required methods
    fn submit<'life0, 'async_trait>(
        &'life0 self,
        row: PreparedAuditRow,
    ) -> Pin<Box<dyn Future<Output = Result<AuditCommitOutcome, AuditTerminalReason>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn quiesce<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<(), AuditTerminalReason>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn close_and_drain<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<(), AuditTerminalReason>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn submit<'life0, 'async_trait>( &'life0 self, row: PreparedAuditRow, ) -> Pin<Box<dyn Future<Output = Result<AuditCommitOutcome, AuditTerminalReason>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

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

Source

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

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§