pub struct ReuseSnapshot {
pub cold: u64,
pub disk_content_hits: u64,
pub render_cache_hits: u64,
pub unchanged_stubs: u64,
pub cross_file_refs: u64,
pub fresh_bypasses: u64,
pub stale: u64,
pub variant_evicted: u64,
pub policy_bypasses: u64,
pub eligible_ctx_reads: u64,
pub reused_renderings: u64,
pub eligible_search_reads: u64,
}Expand description
Snapshot for the three non-overlapping cache-reuse measurements.
eligible_ctx_reads intentionally excludes explicit fresh reads and
policy-disabled cache reads: neither was allowed to reuse a rendering.
Fields§
§cold: u64§disk_content_hits: u64§render_cache_hits: u64§unchanged_stubs: u64§cross_file_refs: u64§fresh_bypasses: u64§stale: u64§variant_evicted: u64§policy_bypasses: u64§eligible_ctx_reads: u64§reused_renderings: u64§eligible_search_reads: u64Implementations§
Source§impl ReuseSnapshot
impl ReuseSnapshot
Sourcepub fn read_reuse_rate(&self) -> f64
pub fn read_reuse_rate(&self) -> f64
Percentage of eligible ctx_reads served by an already-rendered result.
Sourcepub fn disk_reuse_rate(&self) -> f64
pub fn disk_reuse_rate(&self) -> f64
Percentage of eligible search file reads served by content_cache.
Trait Implementations§
Source§impl Clone for ReuseSnapshot
impl Clone for ReuseSnapshot
impl Copy for ReuseSnapshot
Source§impl Debug for ReuseSnapshot
impl Debug for ReuseSnapshot
Source§impl Default for ReuseSnapshot
impl Default for ReuseSnapshot
impl Eq for ReuseSnapshot
Source§impl PartialEq for ReuseSnapshot
impl PartialEq for ReuseSnapshot
impl StructuralPartialEq for ReuseSnapshot
Auto Trait Implementations§
impl Forget for ReuseSnapshot
impl Freeze for ReuseSnapshot
impl Move for ReuseSnapshot
impl RefUnwindSafe for ReuseSnapshot
impl Send for ReuseSnapshot
impl Sync for ReuseSnapshot
impl Unpin for ReuseSnapshot
impl UnsafeUnpin for ReuseSnapshot
impl UnwindSafe for ReuseSnapshot
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more