Skip to main content

ReceiptEmitter

Trait ReceiptEmitter 

Source
pub trait ReceiptEmitter {
    type Error;

    // Required method
    fn emit(&self, receipt: &LifecycleReceipt) -> Result<(), Self::Error>;
}
Expand description

Receipt emission seam.

A future router issue will synthesize the crate::LifecycleReceipt and route it to a ledger or notification surface. The skeleton defines the trait shape only.

Required Associated Types§

Source

type Error

Error produced by the receipt sink.

Required Methods§

Source

fn emit(&self, receipt: &LifecycleReceipt) -> Result<(), Self::Error>

Emit (persist, forward, or otherwise hand off) a LifecycleReceipt.

Implementors§