Skip to main content

Module operation

Module operation 

Source
Expand description

Operations: the typed description of one cached call and its erased form.

Structs§

MismatchEntry
One difference in a confirmed-mismatch warning: an RFC 6901 JSON Pointer into the compared value and, optionally, what each side holds there. A side is None when the member exists on the other side only, or when the hook reports where the values differ but not what they hold.
Operation
One inline cached call: its identity, static policy, budget and codecs.

Enums§

SourceBudget
The source deadline of one operation.

Type Aliases§

Comparator
Application equality used by shadow validation.
MismatchDiffHook
Replaces the built-in difference computation of confirmed-mismatch warnings for one operation: receives the compared cached and source values and returns the differences. Like the comparator it must be deterministic, side-effect-free and bounded; a panic logs the difference fields as unavailable with a hook_error outcome and never falls back to the built-in computation. Runs through Runtime::spawn_blocking after mismatch confirmation, and only when mismatch_logging.diff is above off.
Preview
Renders the text a confirmed-mismatch warning logs for a value when mismatch_logging.value is on, in place of the value’s JSON. None, or a panic, logs the field as unavailable with a render_error outcome. A preview you set replaces the JSON for the whole warning, so the built-in difference computation never reads what it leaves out: difference fields then come only from a MismatchDiffHook. Runs through Runtime::spawn_blocking after mismatch confirmation; callbacks may run on a CPU worker thread.
RecoveryPredicate
Decides whether a source failure may be answered from the stale value retained by the initial remote read.