pub enum ResidentGraphCacheMissReason {
EmptyCache,
DomainChanged,
BackendChanged,
LayoutChanged,
ShapeChanged,
KeyAbsent,
}Expand description
Backend-neutral resident cache-miss reason for diagnostics and release evidence.
Variants§
EmptyCache
The resident graph cache has no entries.
DomainChanged
Entries exist but for a different resident graph domain.
BackendChanged
The same domain exists but backend id or backend version changed.
LayoutChanged
Domain and backend match, but the graph layout/content hash changed.
ShapeChanged
Domain, backend, and layout hash matched, but shape fields differ.
KeyAbsent
Adjacent identity says the entry should exist, but the final key missed.
Implementations§
Source§impl ResidentGraphCacheMissReason
impl ResidentGraphCacheMissReason
Sourcepub const fn classify(evidence: ResidentGraphCacheMissEvidence) -> Self
pub const fn classify(evidence: ResidentGraphCacheMissEvidence) -> Self
Classify a resident graph cache miss from adjacent identity evidence.
Sourcepub const fn metric_suffix(self) -> &'static str
pub const fn metric_suffix(self) -> &'static str
Stable metric suffix for cache telemetry.
Trait Implementations§
Source§impl Clone for ResidentGraphCacheMissReason
impl Clone for ResidentGraphCacheMissReason
Source§fn clone(&self) -> ResidentGraphCacheMissReason
fn clone(&self) -> ResidentGraphCacheMissReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ResidentGraphCacheMissReason
Source§impl Debug for ResidentGraphCacheMissReason
impl Debug for ResidentGraphCacheMissReason
impl Eq for ResidentGraphCacheMissReason
impl StructuralPartialEq for ResidentGraphCacheMissReason
Auto Trait Implementations§
impl Freeze for ResidentGraphCacheMissReason
impl RefUnwindSafe for ResidentGraphCacheMissReason
impl Send for ResidentGraphCacheMissReason
impl Sync for ResidentGraphCacheMissReason
impl Unpin for ResidentGraphCacheMissReason
impl UnsafeUnpin for ResidentGraphCacheMissReason
impl UnwindSafe for ResidentGraphCacheMissReason
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.