Skip to main content

Module state

Module state 

Source
Expand description

The ledger’s states and error codes, the edges between states, and which rows a human may move by hand.

Structs§

HandActionAvailability
Which hand actions a row is offered, decided once on the server for every admin surface. Clearing the attention flag is refused only on a superseded row, so it is not in here.
ResubmissionFacts
What decides whether a row may be moved by hand, read off whichever row type the caller has.

Enums§

CheckNowTarget
What checking a row now brings forward.
CreditRegistrationErrorCode
Why a ledger row is where it is; state says what happens to it next.
CreditRegistrationState
What the pipeline does next with a ledger row.
PendingSupersessionEffect 🔒
ResubmissionAvailability
Whether a row may be sent again by hand.
ResubmissionRefusal
Why ResubmissionFacts refuses a hand action on a row.
ResubmissionRisk
How a resend ResubmissionFacts::resubmission_refusal allows may go wrong, which the admin surfaces warn about before it is confirmed.
ResubmissionStrictness
How far outside a failure ResubmissionFacts::resubmission_refusal will still allow a row to move back to ready_to_submit.

Constants§

ADMIN_ONLY_TARGETS
The edges only a hand transition may take, from any state ResubmissionFacts::admin_transition_refusal does not refuse: putting a row back on the pipeline, and writing one off.