Skip to main content

Module consistency

Module consistency 

Source
Expand description

Where a Client keeps the consistency token it sends with its calls and replaces with the one each answer carries.

By default each client has its own, a ConsistencyTokenCell, shared by its clones. A program that wants several clients, or code outside the SDK, to share one token gives each the same store (ClientBuilder::consistency_token_store), such as one ConsistencyTokenCell in an Arc, or an implementation of its own, such as one a browser tab’s state holds.

Structs§

ConsistencyTokenCell
A consistency token in memory: what a client holds by default. Give one in an Arc to several clients for them to share it.

Traits§

ConsistencyTokenStore
Holds the consistency token a client presents. The client reads it before each attempt of an authenticated call, replaces it with the token an answer carries, and removes one the API refused.