pub struct PreparedPlanCacheStats {Show 13 fields
pub entries: usize,
pub retained_bytes: usize,
pub hits: u64,
pub misses: u64,
pub waits: u64,
pub negative_hits: u64,
pub preparations: u64,
pub evictions: u64,
pub redirects: u64,
pub in_flight: usize,
pub peak_in_flight: usize,
pub queued_distinct_keys: usize,
pub capacity_refusals: u64,
}Expand description
Prepared-plan cache statistics.
§Examples
use tenferro_runtime::PreparedPlanCacheStats;
assert_eq!(PreparedPlanCacheStats::default().entries, 0);Fields§
§entries: usizeRetained terminal entries.
retained_bytes: usizeLogical bytes retained by entries, active attempts, and queued records.
hits: u64Ready or redirect cache hits.
misses: u64Distinct producer starts.
waits: u64Waits on an existing active or queued key.
negative_hits: u64Hits on retained deterministic failures.
preparations: u64Producer callbacks invoked.
evictions: u64Retained entries evicted by entry or byte limits.
redirects: u64Redirect terminals returned.
in_flight: usizeActive distinct producer count.
peak_in_flight: usizeHighest observed active producer count.
queued_distinct_keys: usizeDistinct queued keys.
capacity_refusals: u64Capacity refusals.
Trait Implementations§
Source§impl Clone for PreparedPlanCacheStats
impl Clone for PreparedPlanCacheStats
Source§fn clone(&self) -> PreparedPlanCacheStats
fn clone(&self) -> PreparedPlanCacheStats
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 moreSource§impl Debug for PreparedPlanCacheStats
impl Debug for PreparedPlanCacheStats
Source§impl Default for PreparedPlanCacheStats
impl Default for PreparedPlanCacheStats
Source§fn default() -> PreparedPlanCacheStats
fn default() -> PreparedPlanCacheStats
Returns the “default value” for a type. Read more
Source§impl PartialEq for PreparedPlanCacheStats
impl PartialEq for PreparedPlanCacheStats
Source§fn eq(&self, other: &PreparedPlanCacheStats) -> bool
fn eq(&self, other: &PreparedPlanCacheStats) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PreparedPlanCacheStats
impl Eq for PreparedPlanCacheStats
impl StructuralPartialEq for PreparedPlanCacheStats
Auto Trait Implementations§
impl Freeze for PreparedPlanCacheStats
impl RefUnwindSafe for PreparedPlanCacheStats
impl Send for PreparedPlanCacheStats
impl Sync for PreparedPlanCacheStats
impl Unpin for PreparedPlanCacheStats
impl UnsafeUnpin for PreparedPlanCacheStats
impl UnwindSafe for PreparedPlanCacheStats
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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<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