Skip to main content

Module exchange

Module exchange 

Source
Expand description

Exchange records and their delivery (spec 009, 3.9), and reconciliation offers for charges learned late (3.4.4, 3.10.4).

The adapter hands every rustev.remote-exchange/1 record to a host sink injected at construction. A sink failure never changes an attempt’s result; it is counted. Retention is the host’s (R-19): the record holds digests only, and request and response bytes reach the sink only when the host asked for them.

Structs§

DeliveryNote
What delivering one record established, for remote evidence.
DiscardExchanges
A sink that keeps nothing.
ExchangeStats
Delivery counts. In memory only.
Exchanges
Delivers records and offers to the host sink, counting failures.
ReconciliationOffer
A charge learned after the attempt’s own report, offered to the host for reconciliation of the shared ledger (spec 003, 3.5.5). The host decides; an offer changes nothing by itself.
RetainedBytes
Request and response bytes, retained only under explicit retention.

Traits§

ExchangeSink
The host’s exchange sink.

Functions§

blank_record
An exchange record with every optional member empty, for an adapter to fill in. members must be in attempt-id order.
output_digest
sha256: of an output’s record canonical bytes (spec 004, 5.6); None for an output without that form (a non-finite number).