pub trait TxSubmitOutcomeReporter: Send + Sync {
// Required method
fn record_outcome(&self, outcome: &TxSubmitOutcome);
}Expand description
Callback surface for external outcome sinks.
TxSubmitClient delivers these callbacks asynchronously through one bounded FIFO dispatcher per
reporter instance, shared across clients that use that same reporter. That keeps the reporter
off the synchronous submit hot path while preserving outcome order for events that are
successfully queued. Under sustained pressure or dispatcher startup failure, reporter delivery
is best-effort and built-in telemetry remains the authoritative always-inline outcome counter
surface.
Required Methods§
Sourcefn record_outcome(&self, outcome: &TxSubmitOutcome)
fn record_outcome(&self, outcome: &TxSubmitOutcome)
Records one structured outcome.