Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.
pub enum CacheMissReason {
PrefixMismatch,
BelowMinimumThreshold,
RetentionExpired,
RoutingMismatch,
Evicted,
UnsupportedFeature,
ColdStart,
Unknown,
Other {
description: String,
},
}
Reason why a cache miss occurred.
Covers 8 determinable reasons plus an extensible Other variant. Uses internally-tagged JSON representation ("reason" field) so each variant serializes as {"reason": "snake_case"} and the Other variant additionally carries a description field.
PrefixMismatchPrefixMismatch
Prompt prefix didn’t match cached prefix.
BelowMinimumThresholdBelowMinimumThreshold
Stable prefix shorter than provider minimum for caching.
RetentionExpiredRetentionExpired
Cached prefix retention window elapsed.
RoutingMismatchRoutingMismatch
Request routed to different worker/pool.
EvictedEvicted
Cache evicted due to capacity pressure.
UnsupportedFeatureUnsupportedFeature
Backend/model doesn’t support caching.
ColdStartColdStart
First request for this prefix (no prior cache entry).
UnknownUnknown
Reason could not be determined from provider response.
OtherOther
Extensible escape hatch for reasons not yet in the enum.
description: StringHuman-readable description of the miss reason.
impl Clone for CacheMissReasonimpl Clone for CacheMissReason
clonefn clone(&self) -> CacheMissReason
clone_fromfn clone_from(&mut self, source: &Self)
impl Debug for CacheMissReasonimpl Debug for CacheMissReason
fmtfn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<'de> Deserialize<'de> for CacheMissReasonimpl<'de> Deserialize<'de> for CacheMissReason
deserializefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Hash for CacheMissReasonimpl Hash for CacheMissReason
hashfn hash<__H: Hasher>(&self, state: &mut __H)
hash_slicefn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
Self: Sized,
impl PartialEq for CacheMissReasonimpl PartialEq for CacheMissReason
eqfn eq(&self, other: &CacheMissReason) -> bool
nefn ne(&self, other: &Rhs) -> bool
impl Serialize for CacheMissReasonimpl Serialize for CacheMissReason
serializefn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
impl Eq for CacheMissReasonimpl Eq for CacheMissReason
impl StructuralPartialEq for CacheMissReasonimpl StructuralPartialEq for CacheMissReason