Skip to main content

Crate qubit_fast_cas

Crate qubit_fast_cas 

Source
Expand description

Lightweight compare-and-swap primitives for u64 state words.

CasCell owns an atomic state word and retries functional updates until they commit or return a business error. FastCas adds bounded conflict policies and attempt metadata for callers that need explicit control.

Update closures may execute repeatedly after conflicts and should avoid non-idempotent side effects.

Structs§

CasCell
An atomic u64 cell with reusable compare-and-swap update loops.
FastCas
Policy-driven compare-and-swap executor for u64 state codes.
FastCasSuccess
Successful crate::FastCas result carrying its state transition and output.

Enums§

FastCasDecision
Decision returned by one crate::FastCas operation attempt.
FastCasError
Terminal crate::FastCas failure.
FastCasPolicy
Controls how crate::FastCas responds when compare-and-swap loses a race.

Type Aliases§

FastCasState
Shared atomic state used by crate::FastCas.