Expand description
Operations: the typed description of one cached call and its erased form.
Structs§
- Mismatch
Entry - 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
Nonewhen 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§
- Source
Budget - The source deadline of one operation.
Type Aliases§
- Comparator
- Application equality used by shadow validation.
- Mismatch
Diff Hook - 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_erroroutcome and never falls back to the built-in computation. Runs throughRuntime::spawn_blockingafter mismatch confirmation, and only whenmismatch_logging.diffis aboveoff. - Preview
- Renders the text a confirmed-mismatch warning logs for a value when
mismatch_logging.valueis on, in place of the value’s JSON.None, or a panic, logs the field as unavailable with arender_erroroutcome. 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 aMismatchDiffHook. Runs throughRuntime::spawn_blockingafter mismatch confirmation; callbacks may run on a CPU worker thread. - Recovery
Predicate - Decides whether a source failure may be answered from the stale value retained by the initial remote read.