pub struct PreparedStatementCacheStatsSnapshot {
pub hits: u64,
pub misses: u64,
pub evictions: u64,
pub degradations: u64,
pub invalidations: u64,
pub size: usize,
pub hit_rate: f64,
}Expand description
统计快照(用于读取一致性视图)
Fields§
§hits: u64命中次数
misses: u64未命中次数
evictions: u64LRU 淘汰次数
degradations: u64降级次数(缓存内部错误时降级直接执行)
invalidations: u64失效次数(表级 + 连接级)
size: usize当前缓存条目总数
hit_rate: f64命中率(0.0 ~ 1.0)
Trait Implementations§
Source§impl Clone for PreparedStatementCacheStatsSnapshot
impl Clone for PreparedStatementCacheStatsSnapshot
Source§fn clone(&self) -> PreparedStatementCacheStatsSnapshot
fn clone(&self) -> PreparedStatementCacheStatsSnapshot
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 moreAuto Trait Implementations§
impl Freeze for PreparedStatementCacheStatsSnapshot
impl RefUnwindSafe for PreparedStatementCacheStatsSnapshot
impl Send for PreparedStatementCacheStatsSnapshot
impl Sync for PreparedStatementCacheStatsSnapshot
impl Unpin for PreparedStatementCacheStatsSnapshot
impl UnsafeUnpin for PreparedStatementCacheStatsSnapshot
impl UnwindSafe for PreparedStatementCacheStatsSnapshot
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<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