Skip to main content

Module client

Module client 

Source
Expand description

Ecr17Client โ€” the high-level async API: builds requests, drives the Ecr17Session, parses/maps responses to the typed crate::types results, and applies the money-safe auto-reconnect policy. Port of the reference C++ HybridEcr17Client.

๐Ÿ’ฐ On a mid-command drop the socket is reconnected (when auto_reconnect is on), but a financial command is never replayed (double-charge) โ€” only read-only/idempotent ops are retried; a lost financial response is recovered via Ecr17Client::send_last_result (G). The decision is crate::retry::should_retry_after_reconnect.

Structsยง

Ecr17Client
High-level ECR17 client over a Transport T.