pub struct PreparedStatementStats {
pub hits: u64,
pub misses: u64,
pub cached_count: usize,
pub time_saved_ms: u64,
}Expand description
Statistics for prepared statement cache.
Fields§
§hits: u64Number of cache hits.
misses: u64Number of cache misses.
cached_count: usizeNumber of statements currently cached.
time_saved_ms: u64Total preparation time saved (estimated).
Implementations§
Trait Implementations§
Source§impl Clone for PreparedStatementStats
impl Clone for PreparedStatementStats
Source§fn clone(&self) -> PreparedStatementStats
fn clone(&self) -> PreparedStatementStats
Returns a duplicate of the value. Read more
1.0.0 · 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 PreparedStatementStats
impl Debug for PreparedStatementStats
Source§impl Default for PreparedStatementStats
impl Default for PreparedStatementStats
Source§fn default() -> PreparedStatementStats
fn default() -> PreparedStatementStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PreparedStatementStats
impl RefUnwindSafe for PreparedStatementStats
impl Send for PreparedStatementStats
impl Sync for PreparedStatementStats
impl Unpin for PreparedStatementStats
impl UnwindSafe for PreparedStatementStats
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