Skip to main content

OutcomeDelivery

Trait OutcomeDelivery 

Source
pub trait OutcomeDelivery: Send + Sync {
    // Required method
    fn deliver(
        &self,
        holder: &str,
        draft: &ApprovedDraft,
        receipt: &Execution,
    ) -> Result<(), DraftError>;
}
Expand description

The agent owner delivers by immutable operation id through its state writer.

Required Methods§

Source

fn deliver( &self, holder: &str, draft: &ApprovedDraft, receipt: &Execution, ) -> Result<(), DraftError>

Atomically clears waiting and puts one outcome in the bound agent inbox.

§Errors

Missing agent binding, storage or publication failure; no guessed identity.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§