Skip to main content

ContextAuditSession

Trait ContextAuditSession 

Source
pub trait ContextAuditSession: Send + Sync {
    // Required methods
    fn snapshot<'life0, 'life1, 'async_trait>(
        &'life0 self,
        operation: &'life1 OperationContext,
        snapshot: ContextAuditSnapshot,
    ) -> Pin<Box<dyn Future<Output = Result<(), PortFailure>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn derivation<'life0, 'life1, 'async_trait>(
        &'life0 self,
        operation: &'life1 OperationContext,
        derivation: ContextAuditDerivation,
    ) -> Pin<Box<dyn Future<Output = Result<(), PortFailure>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn model_invocation<'life0, 'life1, 'async_trait>(
        &'life0 self,
        operation: &'life1 OperationContext,
        invocation: ModelInvocationAudit,
    ) -> Pin<Box<dyn Future<Output = Result<(), PortFailure>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn snapshot<'life0, 'life1, 'async_trait>( &'life0 self, operation: &'life1 OperationContext, snapshot: ContextAuditSnapshot, ) -> Pin<Box<dyn Future<Output = Result<(), PortFailure>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn derivation<'life0, 'life1, 'async_trait>( &'life0 self, operation: &'life1 OperationContext, derivation: ContextAuditDerivation, ) -> Pin<Box<dyn Future<Output = Result<(), PortFailure>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn model_invocation<'life0, 'life1, 'async_trait>( &'life0 self, operation: &'life1 OperationContext, invocation: ModelInvocationAudit, ) -> Pin<Box<dyn Future<Output = Result<(), PortFailure>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§