Skip to main content

EventAppender

Trait EventAppender 

Source
pub trait EventAppender {
    // Required method
    fn append_execution_event(
        &mut self,
        envelope: ExecutionEventEnvelope,
    ) -> Result<(), String>;

    // Provided method
    fn append_execution_event_with_outcome(
        &mut self,
        envelope: ExecutionEventEnvelope,
    ) -> Result<EventAppendOutcome, String> { ... }
}

Required Methods§

Provided Methods§

Source

fn append_execution_event_with_outcome( &mut self, envelope: ExecutionEventEnvelope, ) -> Result<EventAppendOutcome, String>

Append a fact and report whether this call committed it. Persistent implementations that support idempotency should override this method. The default preserves compatibility for append-only adapters without a duplicate receipt; production cancel paths use the Runtime override.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§