Skip to main content

Module classification

Module classification 

Source
Expand description

What a Suotar per-item code means: the one place the wire vocabulary is spelled out, and the one place retryability is decided. The mock Suotar’s fault validator reads it too. Timing (how long to wait) is super::backoff.

Enums§

Retryability
What may be done about an error code. The class is the contract’s, not the endpoint’s: the import phase is the only place that upgrades a code to Retryability::VerifyOnly.
WireOutcome
What one code says about the row that carries it. Every view below narrows this.

Functions§

is_retryable_transient_wire_code
map_code
Suotar’s per-item code as a ledger error code, hardened for the endpoint it arrived on. None where the code names no failure to record.
outcome_of
wire_outcome hardened for the endpoint the code arrived on. Every caller that has an endpoint to name goes through here.
retryability
settled_state
The state a code settles a row in, or None where it settles nothing.
wire_code_retryability
The class the contract gives a wire code, before any hardening of ours, which is what the mock’s fault validator needs.
wire_outcome 🔒
The contract’s own reading of a code, before any hardening of ours.