Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.
pub enum CacheMissEvidence {
PrefixMismatch {
first_mismatch_span_id: String,
sequence_index: u32,
expected_hash_prefix: String,
actual_hash_prefix: String,
},
BelowMinimumThreshold {
observed_prefix_tokens: u32,
required_min_tokens: u32,
estimation_source: String,
},
RetentionExpired {
observed_gap_secs: f64,
retention_window_secs: f64,
provider_semantics: String,
},
Unknown {
missing_facts: Vec<String>,
},
}
Typed evidence for a cache miss diagnosis.
PrefixMismatchPrefixMismatch
Stable prefix diverged from the retained exemplar.
first_mismatch_span_id: StringSpan ID of the first mismatching stable block.
sequence_index: u32Zero-based sequence index of the mismatching block.
expected_hash_prefix: StringExpected short SHA-256 hash prefix.
actual_hash_prefix: StringActual short SHA-256 hash prefix.
BelowMinimumThresholdBelowMinimumThreshold
Stable prefix is too short for provider cache reuse.
observed_prefix_tokens: u32Observed stable prefix tokens.
required_min_tokens: u32Required minimum tokens for cache reuse.
estimation_source: StringSource of the token estimate.
RetentionExpiredRetentionExpired
Stable prefix likely aged out of the provider retention window.
observed_gap_secs: f64Observed gap between requests with the same stable prefix.
retention_window_secs: f64Provider retention window in seconds.
provider_semantics: StringHuman-readable provider semantics summary.
UnknownUnknown
Diagnosis could not be justified from the available facts.
missing_facts: Vec<String>List of facts that were unavailable at classification time.
impl Clone for CacheMissEvidenceimpl Clone for CacheMissEvidence
clonefn clone(&self) -> CacheMissEvidence
clone_fromfn clone_from(&mut self, source: &Self)
impl Debug for CacheMissEvidenceimpl Debug for CacheMissEvidence
fmtfn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<'de> Deserialize<'de> for CacheMissEvidenceimpl<'de> Deserialize<'de> for CacheMissEvidence
deserializefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl PartialEq for CacheMissEvidenceimpl PartialEq for CacheMissEvidence
eqfn eq(&self, other: &CacheMissEvidence) -> bool
nefn ne(&self, other: &Rhs) -> bool
impl Serialize for CacheMissEvidenceimpl Serialize for CacheMissEvidence
serializefn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
impl StructuralPartialEq for CacheMissEvidenceimpl StructuralPartialEq for CacheMissEvidence