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§
Required Methods§
Sourcefn emit(&self, receipt: &LifecycleReceipt) -> Result<(), Self::Error>
fn emit(&self, receipt: &LifecycleReceipt) -> Result<(), Self::Error>
Emit (persist, forward, or otherwise hand off) a
LifecycleReceipt.