Skip to main content

AutomaticAudit

Trait AutomaticAudit 

Source
pub trait AutomaticAudit: MaybeSend + MaybeSync {
    // Required method
    fn plan<'a>(
        &'a self,
        partition: &'a Partition,
        request: &'a Request,
        operation_id: &'a str,
        now_ms: u64,
        snapshot: RelayEnqueueSnapshot,
    ) -> BoxFuture<'a, Result<Batch, StoreError>>;
}
Expand description

Plan automatic audit outbox work in the same apply as its serving-state change.

Required Methods§

Source

fn plan<'a>( &'a self, partition: &'a Partition, request: &'a Request, operation_id: &'a str, now_ms: u64, snapshot: RelayEnqueueSnapshot, ) -> BoxFuture<'a, Result<Batch, StoreError>>

Returned effects belong to partition; the caller atomically commits these source-local relay rows alongside the automatic purge intent. Use the caller’s charged source snapshot; planning must not read a captured source store or issue a Durable Object self-call.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§