Skip to main content

Module reconnect

Module reconnect 

Source
Expand description

Lazy service creation and policy-controlled reconnection.

Reconnect creates independent ReconnectService instances. Each instance owns one pipeline-local readiness scope and creates its child on demand. Failed requests are returned to the caller, never replayed automatically.

Structs§

DefaultPolicy
Policy that permits reconnection after every error.
Reconnect
Factory for independent, lazily connected ReconnectService instances.
ReconnectService
Lazily creates a child service and replaces it after policy-approved errors.

Traits§

ReconnectPolicy
Decides whether a service error permits retrying or replacing a connection.